GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 62
Consider the following C program:
Last printf will printed _______________ .
(D) None of these
Explanation: First function geek1 will not swap strings, so first print is for geek by geek.
Now, function geek2 will swap string, and strlen(str1) will return lenght of string “by geek”, which is 7.
Option (B) is correct.
Quiz of this Question
Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.
Learn all GATE CS concepts with Free Live Classes on our youtube channel.