Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged storage-classes-in-c
5
votes
2
answers
1
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 27
What is a statically allocated variable in C programming? A variable allocated at an absolute address in a program’s data space A variable allocated on the stack A variable allocated on the heap A variable which can NOT be defined as local variable
What is a statically allocated variable in C programming? A variable allocated at an absolute address in a program’s data spaceA variable allocated on the stackA variab...
GO Classes
333
views
GO Classes
asked
Feb 5
Programming in C
goclasses2024-mockgate-14
programming
programming-in-c
storage-classes-in-c
1-mark
+
–
6
votes
2
answers
2
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 13
What will be the output of following program ? #include <stdio.h> int thefunction(int a) { static int b = 0; b++; a = a + b; return a; } int main() { int b = 0; int i; for (i = 1; i <= 3; i++) { b = b + thefunction(i); } printf("%d\n", b); return 0; }
What will be the output of following program ?#include <stdio.h int thefunction(int a) { static int b = 0; b++; a = a + b; return a; } int main() { int b = 0; int i; for ...
GO Classes
480
views
GO Classes
asked
Jan 21
Programming in C
goclasses2024-mockgate-12
goclasses
numerical-answers
programming
programming-in-c
storage-classes-in-c
1-mark
+
–
1
votes
1
answer
3
Arrays, Storage classes
Can an array store elements of different storage classes?
Can an array store elements of different storage classes?
Sparsh-NJ
357
views
Sparsh-NJ
asked
Jul 15, 2023
Programming in C
array
storage-classes-in-c
+
–
2
votes
2
answers
4
Functions and storage classes, Gate Wallah Practice Sheet,
I am getting (b) 5 ?? Can you please explain the_ int i_ in for loop and display() [MCQ] 44. Consider the following function: void display() { static int i; if(i<=printf("GATE24")) { i=i+2; display(); } } int main() { int i=0; ... ;3;i++) display(); return 0; } The number of times printf() executed is- (a) 6 (b) 5 (c) 7 (d) 9
I am getting (b) 5 ?? Can you please explain the_ int i_ in for loop and display()[MCQ] 44. Consider the following function: void display() { static int i; if(i<=printf("...
gagan55
564
views
gagan55
asked
Jul 15, 2023
Programming in C
programming-in-c
storage-classes-in-c
+
–
1
votes
2
answers
5
storage class
find the output of following program main() { extern int a; a=5; printf("%d",a); }
find the output of following programmain(){ extern int a; a=5; printf("%d",a);}
someshawasthi
696
views
someshawasthi
asked
Nov 30, 2022
Programming in C
storage-classes-in-c
+
–
8
votes
1
answer
6
GO Classes Test Series 2024 | Programming | Test 2 | Question: 3
Consider two files given below. //file1.c #include<stdio.h> main () { extern int i; printf("file1"); } //file2.c #include<stdio.h> main () { int i =1; printf("file2"); } We compile ... compiled independently but can not be linked together file$1$.c can be compiled and linked independently of file$2$.c.
Consider two files given below.//file1.c #include<stdio.h main () { extern int i; printf("file1"); } //file2.c #include<stdio.h main () { int i =1; printf("file2"); }We c...
GO Classes
596
views
GO Classes
asked
Apr 24, 2022
Programming in C
goclasses2024-programming-2-weekly-quiz
goclasses
programming
programming-in-c
storage-classes-in-c
multiple-selects
1-mark
+
–
5
votes
1
answer
7
GO Classes Test Series 2024 | Programming | Test 2 | Question: 9
What will be the output of running file main.c? write.c *********************** extern int count; void write_extern() { count +=2; } main.c *********************** #include "write.c" #include<stdio.h> int count = 5; main() { write_extern(); write_extern(); printf("%d", count); } $0$ $5$ $9$ None of these
What will be the output of running file main.c?write.c * extern int count; void write_extern() { count +=2; }main.c * #include "write.c" #include<st...
GO Classes
335
views
GO Classes
asked
Apr 24, 2022
Programming in C
goclasses2024-programming-2-weekly-quiz
goclasses
programming
programming-in-c
storage-classes-in-c
output
1-mark
+
–
3
votes
1
answer
8
GO Classes Test Series 2024 | Programming | Test 2 | Question: 20
Consider the following two .c files, which both include the same .h file: When compiled, linked, and executed, the following output results: $x = 1 \; y = 2\; z = 3\; w = 4\; v = 5$ Assuming that this program compiled and linked ... Line$(6)$ - empty Line$(7)$ - empty Line$(8)$ - static Line$(9)$ - empty Line$(10)$ - static
Consider the following two .c files, which both include the same .h file:When compiled, linked, and executed, the following output results:$x = 1 \; y = 2\; z = 3\; w = 4...
GO Classes
410
views
GO Classes
asked
Apr 24, 2022
Programming in C
goclasses2024-programming-2-weekly-quiz
goclasses
programming
programming-in-c
storage-classes-in-c
2-marks
+
–
0
votes
2
answers
9
UGC NET CSE | January 2017 | Part 2 | Question: 13
Which of the following storage classes have global visibility in $C/C++$? Auto Extern Static Register
Which of the following storage classes have global visibility in $C/C++$?AutoExternStaticRegister
go_editor
864
views
go_editor
asked
Mar 24, 2020
Programming and DS
ugcnetjan2017ii
programming-in-c
storage-classes-in-c
+
–
2
votes
0
answers
10
Storage Class
Q. What is the output of following program? int main(){ register int Data =10; int *piSumData = NULL; piSumData = &Data; *piSumData = 5; printf("%d",*piSumData); } 1. Run time error 2. garbage value 3. 10 4. 5
Q. What is the output of following program?int main(){ register int Data =10; int *piSumData = NULL; piSumData = &Data; *piSumData = 5; printf("%d",*piSumData); }1. Run ...
K ANKITH KUMAR
1.0k
views
K ANKITH KUMAR
asked
Aug 8, 2018
Programming in C
storage-classes-in-c
+
–
1
votes
1
answer
11
programming in c
For the following typedef in C, pick the best statement typedef int INT, *INTPTR, ONEDARR[10], TWODARR[10][10]; A It will cause compile error because typedef is being used to define multiple aliases of incompatible types in the same statement. B INT x would define x of ... **. ONEDARR z would define z as array of 10 int. TWODARR t would define t as array of 10 by 10 int.
For the following “typedef” in C, pick the best statementtypedef int INT, *INTPTR, ONEDARR[10], TWODARR[10][10];AIt will cause compile error because typedef is being ...
chandra sai
751
views
chandra sai
asked
Sep 26, 2017
Programming in C
storage-classes-in-c
+
–
0
votes
0
answers
12
self doubt
what is the use of type qualifiers in C? provide some examples.
what is the use of type qualifiers in C? provide some examples.
chandra sai
227
views
chandra sai
asked
Sep 26, 2017
Programming in C
storage-classes-in-c
programming-in-c
+
–
Page:
1
2
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register