What is the output of the following C program?
What will be the output of the following C program?
How would you call a C function in a C++ code?
In which order are the following operations evaluated?
What is the output of the following program?
void main();
void main(int x)
{
void *v;
v = &x;
printf("%d", ++*(int *)v);
}
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 5;
printf("%d %d %d", i++, i++, i++);
return 0;
}
What does the format %10.2f mean when included in a printf statement?
What will be the output of the following code?
#include<stdio.h>
int main(void)
{
do
{
printf("In while loop\n");
}
while(0);
printf("After loop");
return 0;
}
How structures and classes in C++ differ?
What happens if we run the following code in both C and C++?
#include<stdio.h>
struct STRUCT
{
int a = 5;
int func()
{
printf("%d\n", a);
}
};
int main()
{
struct STRUCT s;
s.func();
return 0;
}