Input & Output
- What will be the output of the following C code?
#include <stdio.h>
int main()
{
char *str = "Interview";
int n = 30;
printf("%*s", n, str);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Interview(note: spaces to the left of Interview)
- What will be the output of the following C code?
#include <stdio.h>
int main(int argc, char** argv)
{
char *str = "Interveiw";
int n = 3;
printf("%10.*s", n, str);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Int(note:6 spaces after Int)
- What will be the output of the following C code?
#include
int main()
{
int n = 15, m = 8;
printf("%d\n", printf("%d %d ", n, m));
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
15 8 5
- The statement prog < infile causes _________
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
prog to read characters from infile
- What is the value of EOF?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
-1