What will be the output of the following C++ code?
In C++ programs, inline functions are expanded during ______.
#include<iostream>
int main()
{
const int size = 0;
cout<<size;
return 0;
}
What is the correct value to return to the operating system upon the successful completion of a program?
What is the correct way to handle command-line arguments with spaces?
What happens when the #include directive is used with a file name enclosed in angle brackets (<>) in Angular?
The correct statement for a function that takes a pointer to a float, a pointer to a pointer to a char, and returns a pointer to a pointer to an integer is:
What is the output of the following C program?
void main()
{
struct dep
{
char name[20];
int age;
float sal;
};
struct dep f = {"tiger"};
printf("%d %f", f.age, f.sal);
}
#include <bits/stdc++.h>
using namespace std;
int increment(int x) { return (x+1); }
int main()
{
int arr[] = {1, 2, 3, 4, 5};
int n = sizeof(arr)/sizeof(arr[0]);
transform(arr, arr+n, arr, increment);
for (int i=0; i<n; i++)
cout << arr[i];
return 0;
}