Home / MCQ Bank / Computer
Computer Pointer Difficulty: Medium

What will be the output of the following C code? #include <stdio.h> struct student { int no; char name[20]; }; struct student s; void main() { s.no = 8; printf("%s", s.name); }

Select the correct option to test your answer:

More Computer Questions

Which of the following property contains a list of one or more counter names to be cleared or set to a particular value? Which Shortcut key is pressed to create a new company in Tally Choose the correct statement about process-based multitasking. Which of the following can be the base case for the recursive implementation used to find the length of a string? #include<stdio.h> int get_len(char *s) { int len = 0; while(s[len] != '\0') len++; return len; } int main() { char *s = ""; int len = get_len(s); printf("%d",len); return 0; } Data frames can have additional attributes such as . . . . . . . .