19. | What is the output of the following program? main()
{
int x=20;
int y=10;
swap(x,y);
printf("%d %d",y,x+2);
}
swap(int x,int y)
{
int temp;
temp =x;
x=y;
y=temp;
}
|
|||||||
|
20. | What will be the output of the program? #include
#include
int main()
{
int i=0;
i++;
if(i<=5)
{
printf("careersadda");
exit(1);
main();
}
return 0;
}
|
|||||||
|
21. | main()
{
printf("%p",main);
}
|
|||||||
|
22. | main()
{
clrscr();
}
clrscr();
|
|||||||
|
23. | If int is 2 bytes wide.What will be the output of the program? #include
void fun(char**);
int main()
{
char *argv[] = {"ab", "cd", "ef", "gh"};
fun(argv);
return 0;
}
void fun(char **p)
{
char *t;
t = (p+= sizeof(int))[-1];
printf("%s\n", t);
}
|
|||||||
|
24. | main()
{
int i;
printf("%d",scanf("%d",&i)); // value 10 is given as input here
}
|
|||||||
|
« previous
1
2
3
4
5
6
7
8
9
...next »