

Strings - Programming
Q1: What will be the output of the program ?
#include<stdio.h>
int main()
{
printf("India", "Aptitude\n");
return 0;
}
A Error
B India Aptitude
C India
D Aptitude
ANS:C - India printf("India", "Aptitude\n"); It prints "India". Because ,(comma) operator has Left to Right associativity. After printing "India", the statement got terminated. |


For help Students Orientation
Mcqs Questions
One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.