Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
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
GO Classes
asked
in
Programming in C
Feb 5
by
GO Classes
340
views
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; }
GO Classes
asked
in
Programming in C
Jan 21
by
GO Classes
488
views
goclasses2024-mockgate-12
goclasses
numerical-answers
programming
programming-in-c
storage-classes-in-c
1-mark
1
vote
1
answer
3
Arrays, Storage classes
Can an array store elements of different storage classes?
Sparsh-NJ
asked
in
Programming in C
Jul 15, 2023
by
Sparsh-NJ
362
views
array
storage-classes-in-c
1
vote
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
gagan55
asked
in
Programming in C
Jul 15, 2023
by
gagan55
580
views
programming-in-c
storage-classes-in-c
1
vote
2
answers
5
storage class
find the output of following program main() { extern int a; a=5; printf("%d",a); }
someshawasthi
asked
in
Programming in C
Nov 30, 2022
by
someshawasthi
724
views
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.
GO Classes
asked
in
Programming in C
Apr 24, 2022
by
GO Classes
645
views
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
GO Classes
asked
in
Programming in C
Apr 24, 2022
by
GO Classes
346
views
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
GO Classes
asked
in
Programming in C
Apr 24, 2022
by
GO Classes
429
views
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
go_editor
asked
in
Programming and DS
Mar 24, 2020
by
go_editor
876
views
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
K ANKITH KUMAR
asked
in
Programming in C
Aug 8, 2018
by
K ANKITH KUMAR
1.1k
views
storage-classes-in-c
1
vote
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.
chandra sai
asked
in
Programming in C
Sep 26, 2017
by
chandra sai
768
views
storage-classes-in-c
0
votes
0
answers
12
self doubt
what is the use of type qualifiers in C? provide some examples.
chandra sai
asked
in
Programming in C
Sep 26, 2017
by
chandra sai
238
views
storage-classes-in-c
programming-in-c
Page:
1
2
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions tagged storage-classes-in-c
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...