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 :

  1. Computer
  2. Programming
  3. ComputerProgramming
  4. Garbage

[toggle title=”Output”]ComputerProgramming[/toggle]


Switch to Printf MCQ Home :  Click Here


How and Why ?

  1. Comma is Absent so Two Strings are Considered as “1 parameter”
  2. It’s function is similar to Concating two Strings