ISRO | ISRO CS 2020 | Question 36

What is the output of the code given below?

filter_none

edit
close

play_arrow

link
brightness_4
code

#include <stdio.h>
int main( )
 {
   char name[ ]=“satellites”;
   int len;
   int size;
   len = strlen(name);
   size = sizeof(name);
   printf(“%d”, len * size);
   return 0;
 }

chevron_right


(A) 100
(B) 110
(C) 40
(D) 44


Answer: (B)

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.