a) -1
b) Minimum int value
c) Maximum int value
d) Error message
Showing posts with label printf formats. Show all posts
Showing posts with label printf formats. Show all posts
Monday, February 8, 2010
Sunday, January 10, 2010
What is the output of following program?
#include
int main()
{
printf("%c\n", '1' + 1);
return EXIT_SUCCESS;
}
a) ASCII value of '1' is required to find out the answer
b) 2
c) 50
d) Syntax Error
int main()
{
printf("%c\n", '1' + 1);
return EXIT_SUCCESS;
}
a) ASCII value of '1' is required to find out the answer
b) 2
c) 50
d) Syntax Error
Subscribe to:
Posts (Atom)