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 / karan
it will display the garbage value bcoz there is semicolon
at end of the for loop which will be
-128
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What language is lisp written in?
Who invented bcpl language?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What are the parts of c program?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What is the difference between strcpy() and memcpy() function in c programming?
What are header files? What are their uses?
What is getch c?
How can I read in an object file and jump to locations in it?
Why do we use header files in c?
What is memcpy() function?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Is c easier than java?
Does free set pointer to null?
How can variables be characterized?