|
printf("%d\n",i);
printf("%u\n",i*-1);
}
a)runtime error
b)compilation error
c)prints -1 to 1
d)prints 1 and 1
ans:c
11.
#include <stdio.h>
void main()
{
int **I;
int *j=0;
i=&j;
if (NULL != i&& NULL != *i){
printf("I am here");
}
}
a)prints I am here
b)does not print anything
c)compilaton error
d)runtime error
ans:b
12
#include<stdio.h>
void main()
{
int *j=(int *)0x1000;
printf("%p",j);
}
a)prints-1000
b)runtime error
c)compilation error
d)none of the above
ans:d
13
#include<stdio.h>
void main()
{
int a[2][2]={{2},{3}};
|
|