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
c language interview questions & answer
How can I get the current date or time of day in a c program?
application attempts to perform an operation?
What is the use of define in c?
What are the valid places to have keyword “break”?
using for loop sum 2 number of any 4 digit number in c language
What is the benefit of using #define to declare a constant?
What is the auto keyword good for?
Write a code to generate a series where the next element is the sum of last k terms.
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
Do variables need to be initialized?
What is use of null pointer in c?
How do you use a 'Local Block'?
What is difference between structure and union with example?
What does sizeof int return?