Printf MCQ 9 : Multiple Strings in Printf
Printf Multiple Choice Questions : Two Strings in Printf
Question : Guess the output of Program
#include<stdio.h> #include<conio.h> void main() { clrscr(); printf("Computer""Programming"); getch(); }
Options :
- Computer
- Programming
- ComputerProgramming
- Garbage
[toggle title=”Output”]ComputerProgramming[/toggle]
Switch to Printf MCQ Home : Click Here
How and Why ?
- Comma is Absent so Two Strings are Considered as “1 parameter”
- It’s function is similar to Concating two Strings