How many types of macros are there in C++?
What is the size of a void pointer?
#include
#include<iostream>
using namespace std;
int main()
{
char array[3] = "abc";
cout<<array;
return 0;
}
What is the output of the following program?
void funcadd(int a);
int main()
{
int p=3, q=4;
funcadd(++p);
printf("%d %d", p, q);
}
void funcadd(int p)
{
p++;
printf("%d", p);
}
Why is it expensive to use exceptions in a program?
What is x in the following program?
#include<stdio.h>
int main()
{
typedef char (*(*arrfptr[3])())[10];
arrfptr x;
return 0;
}
The following program is not displaying the correct output. Identify the errors.
#include<stdio.h>
int main()
{
int num=1;
(num==1 ? printf("The number is 1") : printf("The number is not 1"));
}
What is the meaning of the following declaration in the C language?
int (*p)[5];
“typedef” in C basically works as an alias. Which of the following is correct for “typedef”?