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 structure
3
votes
3
answers
1
GO Classes Scholarship 2023 | Test | Question: 25
Consider struct alignment rules as described below - Each primitive data (int, char, float, etc.) type requiring $\text{K}$ bytes must be stored at the address must be multiple of $\text{K}.$ ... a [5]; long int b; } What will be $\text{sizeof(struct s)}?$ $24$ $18$ $32$ $20$
GO Classes
asked
in
Programming
Aug 7, 2022
by
GO Classes
239
views
goclasses-scholarship-test1
goclasses
programming
programming-in-c
structure
2-marks
3
votes
1
answer
2
GO Classes Scholarship 2023 | Test | Question: 28
What will be the output of the following program? #include<stdio.h> struct _go{ char b[20]; char *a; struct _go *c; }x[2] = {"GATE", "2023", x+1, "GO", "Classes", x}, *p = x; typedef struct_go go; go ... ;c, n-2); } int main() { printf("%s",mystry(p,2023)->a); } GATE $2023$ Run time error GO
GO Classes
asked
in
Programming
Aug 7, 2022
by
GO Classes
305
views
goclasses-scholarship-test1
goclasses
programming
programming-in-c
structure
recursion
2-marks
6
votes
1
answer
3
GO Classes 2023 | Weekly Quiz 8 | Question: 1
What will be the output of the following program? struct s{ int i; struct s *p; }; struct s arr[4] = { 7, arr+3, 8, arr+2, 9, arr, 8, arr+1, }; struct s *ap[] = {arr+3, arr+2, arr+1, arr}; struct s **pp =ap; int main() { printf("%d ", ... +->i); printf("%d", ++arr[2].p->i); } $9\; 10\; 9$ $7 \;8\; 10$ $7\; 8\; 9$ None of these
GO Classes
asked
in
Programming
Apr 21, 2022
by
GO Classes
359
views
goclasses_wq8
goclasses
programming
programming-in-c
structure
2-marks
3
votes
1
answer
4
GO Classes 2023 | Weekly Quiz 8 | Question: 5
Consider the following declaration of struct. struct myst{ char a[20]; char *b; struct myst *p; }x[2] = {"GATE", "Overflow", x+1, "GO", "Classes", x}, *p = x; What will be the output of the following print statement? printf("%s", p++->p->b++); Overflow Classes verflow lasses
GO Classes
asked
in
Programming
Apr 21, 2022
by
GO Classes
369
views
goclasses_wq8
goclasses
programming
programming-in-c
structure
1-mark
2
votes
2
answers
5
GO Classes 2023 | Weekly Quiz 8 | Question: 6
What will be the output of the following program? #include<stdio.h> struct _myst{ char b[20]; char *a; struct _myst *c; }x[2] = {"GATE", "Overflow", x+1, "GO", "Classes", x}, *p = x; typedef ... -1); } int main() { printf("%s",mystry(p,2023)->a); } GATE Overflow Run time error Compile-time error
GO Classes
asked
in
Programming
Apr 21, 2022
by
GO Classes
284
views
goclasses_wq8
goclasses
programming
programming-in-c
structure
2-marks
3
votes
1
answer
6
GO Classes 2023 | Weekly Quiz 8 | Question: 7
What will be the output of the following program? struct s{ int i; struct s *p; }; struct s arr[4] = { 7, arr+3, 8, arr+2, 9, arr, 10, arr+1, }; struct s *ap[] = {arr+3, arr+2, arr+1, arr}; struct s **pp =ap; int main() { printf("%d", ap[pp[0]->p->i%2]->i++); } $7$ $10$ $9$ $8$
GO Classes
asked
in
Programming
Apr 21, 2022
by
GO Classes
163
views
goclasses_wq8
goclasses
programming
programming-in-c
structure
output
2-marks
3
votes
1
answer
7
GO Classes 2023 | Weekly Quiz 8 | Question: 8
Based on the struct alignment discussed in class, What are the sizes of $\textsf{foo1, foo2, foo3}$ and $\textsf{foo4}$ respectively? Sizes of primitive data types are given below. sizeof(int) = 4 bytes sizeof(short) = 2 bytes sizeof(char) = 1 byte struct foo1 { int d1; char c1; ... $9,\; 12,\;16,\; 20$ $12,\; 16,\; 12,\; 20$ $12,\; 20,\; 20,\; 20$
GO Classes
asked
in
Programming
Apr 21, 2022
by
GO Classes
251
views
goclasses_wq8
goclasses
programming
programming-in-c
structure
2-marks
10
votes
2
answers
8
GATE CSE 2021 Set 2 | Question: 35
Consider the following $\text{ANSI C}$ program: #include <stdio.h> #include <stdlib.h> struct Node{ int value; struct Node *next;}; int main( ) { struct Node *boxE, *head, *boxN; int index=0; boxE=head= (struct ... which will be reported as an error by the compiler It dereferences an uninitialized pointer that may result in a run-time error
Arjun
asked
in
Programming
Feb 18, 2021
by
Arjun
5.9k
views
gatecse-2021-set2
programming-in-c
normal
pointers
structure
2-marks
2
votes
3
answers
9
ISRO2020-74
Following declaration of an array of struct, assumes size of byte, short, int and long are $1,2,3$ and $4$ respectively. Alignment rule stipulates that $n$ - byte field must be located at an address divisible by $n$, the fields in the struct are not rearranged, padding is used ... is located at an address divisble by $8$, what is the total size of $C$, in bytes? $150$ $160$ $200$ $240$
Satbir
asked
in
Programming
Jan 13, 2020
by
Satbir
2.0k
views
isro-2020
programming
normal
structure
0
votes
0
answers
10
#file structure
Q. suppose the order of b-tree is 23. then how many index records will be stored in level 4(including root as level 1)
amit166
asked
in
Databases
Oct 28, 2018
by
amit166
205
views
file
structure
0
votes
0
answers
11
D. Ritchie Doubt
Bit fields use for padding.It generally contained integer bits(signed and unsigned). But it cannot contain addresses. Does it mean bit field cannot contain a pointer ? When integer can contain a pointer, how bit field cannot contain a pointer?Are these not contradictory?
srestha
asked
in
Programming
Aug 11, 2018
by
srestha
153
views
programming-in-c
structure
0
votes
1
answer
12
Dennis Ritchie Doubt
Lines from Dennis Ritchie 1) The variables named in a structure are called members. A structure member or tag and an ordinary (i.e., non-member) variable can have the same name without conflict, since they can always be distinguished by context. ... p1;} Here p2 is only not copying inside p1 and also incrementing value How copying and incrementing done same time in structures?
srestha
asked
in
Programming
Aug 9, 2018
by
srestha
405
views
programming-in-c
structure
2
votes
3
answers
13
pointers and structures
what will be output printed?
Shivani gaikawad
asked
in
Programming
May 3, 2018
by
Shivani gaikawad
388
views
structure
5
votes
3
answers
14
ISRO2018-2
Consider the following declaration : structaddr { char city[10]; char street[30]; int pin; }; struct { char name[30]; int gender; struct addr locate; } person, *kd = &person; Then *$(kd->name + 2)$ can be used instead of: $person.name+2$ $kd-> (name+2)$ $*((*kd).name+2)$ either $A)$ or $B)$ , not $C)$
Arjun
asked
in
Programming
Apr 22, 2018
by
Arjun
4.5k
views
isro2018
programming
structure
37
votes
9
answers
15
GATE CSE 2018 | Question: 2
Consider the following C program: #include<stdio.h> struct Ournode{ char x, y, z; }; int main() { struct Ournode p={'1', '0', 'a'+2}; struct Ournode *q=&p; printf("%c, %c", *((char*)q+1), *((char*)q+2)); return 0; } The output of this program is: 0, c 0, a+2 '0', 'a+2' '0', 'c'
gatecse
asked
in
Programming
Feb 14, 2018
by
gatecse
15.4k
views
gatecse-2018
programming-in-c
programming
structure
pointers
normal
1-mark
0
votes
1
answer
16
MadeEasy Test Series: Programming & DS - Programming In C
Consider the C node fragment given below: Which of the following true about above code if input is given as linked list of n-element in which for each node memory is created in heap area? A. Compiles successfully but execution may ... in else part. I think answer should be C. Because the return type is int node* Can someone please confirm.
Rishabh Gupta 2
asked
in
Programming
Jan 30, 2018
by
Rishabh Gupta 2
727
views
made-easy-test-series
programming-in-c
pointers
structure
linked-list
heap
1
vote
0
answers
17
test series
how to calculate address in 3D array
92komal
asked
in
DS
Jan 22, 2018
by
92komal
211
views
data
structure
1
vote
0
answers
18
TEST SERIES
struct a { long int i; char ch[4]; }; main ( ) { struct a s; s.i=512; printf(“%d%d%d”,s.ch[0],s.ch[1],s.ch[3]); } What will be the output of following program? Garbage value 122 4 74 None of the above 121 2 72
ankit_thawal
asked
in
Programming
Jan 8, 2018
by
ankit_thawal
1.9k
views
structure
data-structures
0
votes
0
answers
19
Testbook Test Series: Programming & DS - Programming In C
Rock
asked
in
Programming
Mar 25, 2017
by
Rock
240
views
testbook-test-series
programming-in-c
structure
0
votes
0
answers
20
Stack gate 2005 IT
Bhargav Zantye 1
asked
in
DS
Mar 13, 2017
by
Bhargav Zantye 1
593
views
stack
data
structure
0
votes
1
answer
21
Output of the program ?
void main(void) { struct s_type { int i; int j; } s; int i; i=10; s.i=100; s.j=101; printf("%d %d %d", i, s.i, s.j); }
shekhar chauhan
asked
in
Programming
Jun 4, 2016
by
shekhar chauhan
170
views
programming-in-c
output
structure
0
votes
1
answer
22
Prog \ What is the output of the following program??
#include <stdio.h> int main() { struct node { int a; int b; int c; }; struct node s = { 3, 5, 6 }; struct node *pt = &s; printf("%d\n", *((int*)pt+1)); return 0; }
Desert_Warrior
asked
in
Programming
May 16, 2016
by
Desert_Warrior
3.3k
views
programming-in-c
pointers
structure
Page:
1
2
next »
Subscribe to GATE CSE 2023 Test Series
Subscribe to GO Classes for GATE CSE 2023
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
Recruitment of Scientific Officers in the Department of Atomic Energy 2023
GATE CSE 2023 Paper & Analysis - Memory Based
From GATE to Australia
DRDO Previous Year Papers
From Rank 4200 to 64: My Journey to Success in GATE CSE Exam
Subjects
All categories
General Aptitude
(2.5k)
Engineering Mathematics
(9.3k)
Digital Logic
(3.3k)
Programming and DS
(5.9k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.6k)
Non GATE
(1.3k)
Others
(2.4k)
Admissions
(649)
Exam Queries
(843)
Tier 1 Placement Questions
(17)
Job Queries
(75)
Projects
(9)
Unknown Category
(853)
Recent questions tagged structure
Recent Blog Comments
Recommend test series??
pressman pdf/ geeksforgeeks
where to study software engineering for BARC
+1
1200/1000 = 1.2