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 / prasanna kumar [cse dept. kln

i think the program will give the output as 0 or null....
because i=0 is in int datatype but in this program it is
declared as character datatype so it will give the output as
0 or null and it will goes for only one time after wards it
will incremented and goes infinitely....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to check palindrome number in c programming?

1010


How can variables be characterized?

2183


What is a file descriptor in c?

1124


how to build a exercise findig min number of e heap with list imlemented?

2071


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

1218


What language is c written?

1041


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1062


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

1148


What is the difference between abs() and fabs() functions?

1117


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1766


Explain the properties of union. What is the size of a union variable

1184


Why do some versions of toupper act strangely if given an upper-case letter?

1076


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2320


What is the difference between mpi and openmp?

1281


explain what is a newline escape sequence?

1085