MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues
→
Where are the uninitialized global variables store...
1.
Where are the uninitialized global variables stored?
A.
stack segment
B.
heap segment
C.
text segment
D.
BSS
Answer» E.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What if size is zero in the following C statement?realloc(ptr, size)
What will be the output of the program:- extern int i = 5; main() ( int i=7; printf("%d",i); }
Why do we write (int *) before malloc?int *ip = (int *)malloc(sizeof(int));
What will be the output of the following C code?#include <stdio.h> void main() { char *ptr = calloc(200, 2); ptr = "Interview Mania"; printf("%s n", ptr); }
What will be the output of the following C code?#include <stdio.h> struct p { struct p *next; int n; }; int main() { struct p* ptr1 = malloc(sizeof(struct p)); ptr1->n = 1; ptr1->next = malloc(sizeof(struct p)); printf("%d n", ptr1->next->n); return 0; }
What will be the output of the following C code?#include <stdio.h> struct p { struct p *next; int n; }; int main() { struct p *ptr1 = calloc(1, sizeof(struct p)); ptr1->n = 1; ptr1->next = calloc(1, sizeof(struct p)); printf("%d n", ptr1->next->n); return 0; }
Which of the following should be used for freeing the memory allocated in the following C code?#include <stdio.h> struct p { struct p *next; int n; }; int main() { struct p *ptr1 = (struct ptr*)malloc(sizeof(struct p)); ptr1->n = 1; ptr1->next = (struct ptr*)malloc(sizeof(struct p)); return 0; }
What if size is zero in the following C statement?
Where are the uninitialized global variables stored?
What will be the output of the program:- extern int i = 5; main() ( int i=7; printf("%d",i); }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies