Discussion :: Strings
-
What will be the output of the program ?
#include
int main() { printf("Fresher, "GATE/n"); return 0; }
Answer : Option C
Explanation :
printf("Fresher", "GATE\n"); It prints "Fresher". Because ,(comma) operator has Left to Right associativity. After printing "Fresher", the statement got terminated.
Be The First To Comment