GAT Subject
Engineering
Computer Science Civil Engineering Chemical Engineering Agricultural Engineering Mechanical Engineering Electronics and Communication
3. | What will be the output of the program? | |
A. | 6 | |
B. | 2 | |
C. | 12 | |
D. | 7 | |
Answer: Option A | |
Explanation: | |
The function strlen returns the number of characters in the given string. Therefore, strlen("123456") returns 6. Hence the output of the program is "6". |
|
Tutorial Link: |