main()
{
int i=5;
printf("%d%d%d%d",i++,i--,i);
}

Answer Posted / vignesh1988i

some garbage value , 4,5,5...

why in this o/p garbage value is because only 3 parameters
are passed but we have assigned 4 control strings , where
one control string is useless, so for that compiler will
print garbage value....

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of endless loops?

628


Explain how can I read and write comma-delimited text?

661


Why are algorithms important in c program?

625


How would you rename a function in C?

625


What is the difference between pure virtual function and virtual function?

656






What is calloc() function?

629


What is a macro, and explain how do you use it?

631


Why does everyone say not to use gets?

612


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

636


What is the explanation for the dangling pointer in c?

684


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

653


Do pointers take up memory?

666


Differentiate between a for loop and a while loop? What are it uses?

677


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1319


What will the preprocessor do for a program?

596