Input & Output
- What will be the output of the following C code?
#include <stdio.h>
int main()
{
int m = 31, n = 13, p = 30;
printf("%d %d ", m, n, p);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: E
31 13
- What will be the output of the following C code?
#include <stdio.h>
int main()
{
int n = 25, m = 13;
printf("%d %d %d", n, m);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
25 13 Garbage value
- What are the Properties of first argument of a printf() functions?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
It keeps the record of the types of arguments that will follow
- What is the meaning of the following C statement?
printf(“%10s”, state);
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Print empty spaces if the string state is less than 10 characters
- The syntax to print a % using printf statement can be done by ________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
%%