Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is use of #include in c?

1172


What are the applications of c language?

1082


Tell us two differences between new () and malloc ()?

1208


Why cant I open a file by its explicit path?

1041


what is the different bitween abap and abap-hr?

2343


Write a program to know whether the input number is an armstrong number.

1131


How can I ensure that integer arithmetic doesnt overflow?

1179


Is file a keyword in c?

937


What is the role of this pointer?

1077


What do the functions atoi(), itoa() and gcvt() do?

1198


Why do we write return 0 in c?

1077


What is unary operator?

1111


Why does everyone say not to use gets?

1112


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

1041


What should malloc() do?

1179