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

Answer Posted / abdul qadir

11 is a garbage value at address in memory

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of variables in c?

563


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

567


What is main return c?

507


How are Structure passing and returning implemented by the complier?

705


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1477






Here is a good puzzle: how do you write a program which produces its own source code as output?

591


What is the difference between procedural and functional programming?

512


What is the use of pointers in C?

610


Explain what are the different data types in c?

746


How was c created?

584


What is meant by realloc()?

666


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1479


How do I get an accurate error status return from system on ms-dos?

639


What is action and transformation in spark?

585


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1582