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

Write a progarm to find the length of string using switch case?

2067


What is the maximum length of an identifier?

1186


Difference between goto, long jmp() and setjmp()?

1180


How are structure passing and returning implemented?

1040


What are pointers? Why are they used?

1183


What is bss in c?

1104


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

1097


What is the purpose of sprintf?

1136


simple program of graphics and their output display

2000


Can we declare a function inside a function in c?

1040


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1436


How many bytes are occupied by near, far and huge pointers (dos)?

1156


What is scanf_s in c?

1125


What is the explanation for the dangling pointer in c?

1117


What functions are in conio h?

1204