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...

void main()
{
char c;
while(c=getchar()!='\n')
printf("%d",c);
}
o/p=11 why?

Answer Posted / satya

I Think ascii value of \n is 92.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1071


using for loop sum 2 number of any 4 digit number in c language

2351


What is a MAC Address?

1069


Explain enumerated types.

1043


How can you tell whether two strings are the same?

1259


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

3156


What is the advantage of a random access file?

1206


Describe the order of precedence with regards to operators in C.

1051


What is structure packing in c?

1085


Why is extern used in c?

1096


What is call by reference in functions?

1462


What is the advantage of using #define to declare a constant?

1100


What is gets() function?

1143


What is a program flowchart and explain how does it help in writing a program?

1316


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1177