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 are the different types of objects used in c?
What is the most efficient way to count the number of bits which are set in an integer?
List the variables are used for writing doubly linked list program.
How do I use strcmp?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
What is unary operator?
What is the difference between functions abs() and fabs()?
What are header files in c programming?
Explain the difference between structs and unions in c?
What is merge sort in c?
What is a lookup table in c?
Why do some versions of toupper act strangely if given an upper-case letter?
What is calloc() function?
Explain what standard functions are available to manipulate strings?
What is the meaning of 2d in c?