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
Explain how can type-insensitive macros be created?
What is the best way to store flag values in a program?
How does free() know explain how much memory to release?
What is the general form of a C program?
What does 1f stand for?
Is javascript written in c?
What is preprocessor with example?
What is the argument of a function in c?
How can you check to see whether a symbol is defined?
What is an lvalue in c?
What is the meaning of 2d in c?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
Explain what does it mean when a pointer is used in an if statement?
Explain Basic concepts of C language?
what does static variable mean?