What is the output of the program given below
#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
}
Answer Posted / rani
output is
-128
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
Explain what math functions are available for integers? For floating point?
What is unary operator?
What is bubble sort in c?
What is indirection?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
What is define directive?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Can you think of a logic behind the game minesweeper.
What is "Hungarian Notation"?
Explain the binary height balanced tree?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What is null in c?
Can we use any name in place of argv and argc as command line arguments?
number of times a digit is present in a number
What is the difference between typedef struct and struct?