General Knowledge :: Testing sawaal
-
What is the output of this C code?
#include <stdio.h>
void main()
{
int x = 97;
char y = x;
printf("%cn", y);
} -
What would be the output of the following program ?
main()
{
unsigned int a = oxffff;
~a;
printf ("%x", a);
}
-
void main()
{
char good *better, *best;
printf( "%d..%d", sizeof(better), sizeof(best) );
}
-
What will be output when you will execute following c code?
#include <stdio.h>
enum actor{
SeanPenn=5,
AlPacino=-2,
GaryOldman,
EdNorton
};
void main(){
enum actor a=0;
switch(a){
case SeanPenn: printf("Kevin Spacey");
break;
case AlPacino: printf("Paul Giamatti");
break;
case GaryOldman:printf("Donald Shuterland");
break;
case EdNorton: printf("Johnny Depp");
}
} -
What is the output of this C code?
#include <stdio.h>
void m()
{
printf("hi");
}
void main()
{
m();
} -
What is the output of this C code?
#include <stdio.h>
void main()
{
int y = 3;
int x = 5 % 2 * 3 / 2;
printf("Value of x is %d", x);
} -
A source program is the program written in which level language ?
-
Macro flowchart is also called as