|
d)does not print anything
ans:b
9.
#include<stdio.h>
void main()
{
int I=65,j=0;
for(;j<26; i++,j++){
printf("%s\n", i);
}
}
a)compilation Error
b)prints A to Z
c)prints a to z
d)runtime error
ans:b
10.
#include<stdio.h>
void main()
{
unsigned int i=-1;
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
|
|