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


Please Help Members By Posting Answers For Below Questions

Explain how can type-insensitive macros be created?

564


What is the best way to store flag values in a program?

570


How does free() know explain how much memory to release?

607


What is the general form of a C program?

590


What does 1f stand for?

600






Is javascript written in c?

567


What is preprocessor with example?

572


What is the argument of a function in c?

563


How can you check to see whether a symbol is defined?

581


What is an lvalue in c?

684


What is the meaning of 2d in c?

598


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.

2206


Explain what does it mean when a pointer is used in an if statement?

605


Explain Basic concepts of C language?

633


what does static variable mean?

641