What will be output if you will compile and execute the following c code?
#define x 5+2
void main(){
int i;
i=x*x*x;
printf("%d",i);
}
What will be output if you will compile and execute the following c code?
void main(){
int i=320;
char *ptr=(char *)&i;
printf("%d",*ptr);
}
What will be output if you will compile and execute the following c code?
void main(){
char c=125;
c=c+10;
printf("%d",c);
}
What will be output if you will compile and execute the following c code?
void main(){
float a=5.2;
if(a==5.2)
printf("Equal");
else if(a<5.2)
printf("Less than");
else
printf("Greater than");
}
What will be output if you will compile and execute the following c code?
void main(){
int a=10;
printf("%d %d %d",a,a++,++a);
}
#include "stdio.h"
#include "string.h"
void main(){
char *str=NULL;
strcpy(str,"cquestionbank");
printf("%s",str);
}
What will be output if you will compile and execute the following c code?
void main(){
int x;
for(x=1;x<=5;x++);
printf("%d",x);
}
What will be output if you will compile and execute the following c code?
void main(){
printf("%d",sizeof(5.2));
}
What will be output if you will compile and execute the following c code?
#include "stdio.h"
#include "string.h"
void main(){
char c='\08';
printf("%d",c);
}
What will be output if you will compile and execute the following c code?
#define call(x,y) x##y
void main(){
int x=5,y=10,xy=20;
printf("%d",xy+call(x,y));
}