37. | What will be the output of the following statements ? int i = 1,j; j=i--- -2; printf("%d",j);
|
|||||||
|
38. | What will be the output of following program ? #include
main()
{
int x,y = 10;
x = y * NULL;
printf("%d",x);
}
|
|||||||
|
39. | long factorial (long x) {
????
return x * factorial(x - 1);
}
With what do you replace the ???? to make the function shown above return the correct answer?
|
|||||||
|
40. | Find the output of the following code snippet print? int iNumber1 = 10, iNumber2 = 20;
if (iNumber1 = 0)
{
iNumber2 = 50;
}
printf("%d %d",iNumber1,iNumber2);
|
|||||||
|
41. | What would be the Output of this Program ? #include
void main()
{
char y='a';
int x=10;
float z=10.1;
printf("\nSizeof(int) : %d Byte",sizeof(int));
printf("\nSizeof(char) : %d Bytes",sizeof(char));
printf("\nSizeof(float) : %d Bytes",sizeof(float));
}
|
|||||||
|
42. | Find the output of the following program? #include
int main(int argc, char ** argv)
{
int iValue=1;
do {
printf("%d ",iValue);
} while( --iValue );
return 0;
}
|
|||||||
|
« previous
1
2
3
4
5
6
7
8
next »