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 pointers
0
votes
1
answer
1
physics wallah dpp #clanguage #pointer
_Harshit
asked
in
Programming
Mar 18
by
_Harshit
113
views
programming-in-c
pointers
physics-wallah
0
votes
0
answers
2
TestBook testseries TLB and C programming combined question
Consider the following C function executed in an OS with paging where the page size is 4 kilobytes. Further, assume that the system employs a 32-entry direct mapped TLB. int *alloc_and_init() { int counter, value=0, size=2048; int ... of the program, what is the number of TLB misses during the execution of the for loop? 0 1 2048 2
Sahil_Lather
asked
in
Programming
Jan 28
by
Sahil_Lather
48
views
operating-system
programming-in-c
data-structures
pointers
0
votes
1
answer
3
#selfdoubt
What will happen if we dereference a dangling pointer? will it lead to a segmentation fault(core dumped) or an invalid pointer error?
robinofautumn
asked
in
Programming
Dec 8, 2022
by
robinofautumn
152
views
programming-in-c
pointers
1
vote
2
answers
4
Malloc | Free | Dangling Pointer | Prog. & DS
MSQ Consider the following C snippet: #include <stdio.h> int main() { int *ptr = (int*) malloc(100*sizeof(int)); *ptr=33; printf("%d %d\n",ptr,*ptr); // Line X free(ptr); *ptr=37; printf("%d %d\n",ptr,* ... *ptr) is 0 as in Line Y, the allocated heap is freed, and we cannot update it anymore, as ptr is now a dangling pointer
Souvik33
asked
in
Programming
Nov 28, 2022
by
Souvik33
212
views
data-structures
pointers
programming-in-c
0
votes
0
answers
5
Unacademy test series
Which of the following is/are true regarding the following code snippet? 1:int *p; 2:p = &q; A)*p gives faster retrieval of information than q. B)The size of p is same as size of int. C)Only statement 2 gives an error. D)In statement 1, * is used as a dereferencing operator.
Pranavpurkar
asked
in
Programming
Sep 27, 2022
by
Pranavpurkar
208
views
programming-in-c
pointers
unacademy-test-series
bad-question
0
votes
1
answer
6
ISI2020-PCB-CS: 1.1
Consider the two $\mathrm{C}$ programs given below. C-CODE (I) #include<stdio.h> int main() { int n=2, *ptr=&n ; n*=3; printf ("%d", (*ptr**ptr)*(*ptr**ptr)); } C-CODE(II) #include<stdio.h> int main() { int n=2, *ptr=&n ; n*=3; ... $1296$ Output of (I) is $1296$ and (II) is $216$ Output of both (I) and (II) is $1296$ None of the above
Lakshman Patel RJIT
asked
in
Programming
Aug 8, 2022
by
Lakshman Patel RJIT
190
views
isi2020-pcb-cs
programming
programming-in-c
pointers
3
votes
2
answers
7
GO Classes Scholarship 2023 | Test | Question: 18
Consider the following declaration of pointer variable $p.$ int (*p)[10][5]; If the initial value of $p$ is $1000,$ then what will be the value of $p+1?$ It is given that system has $8$ bytes of address size and $4$ bytes of integer size.
GO Classes
asked
in
Programming
Aug 7, 2022
by
GO Classes
381
views
goclasses-scholarship-test1
numerical-answers
goclasses
programming
programming-in-c
pointers
1-mark
1
vote
1
answer
8
GO Classes Scholarship 2023 | Test | Question: 20
Consider the following declarations of a few variables. int (*p1)[3]; int (*p2)[3]; int (*t1)[2]; int (*t2)[2]; Let the initial values of $p1, p2, t2$ and $t1$ are $1000, 1036, 2000$ and $2040$ respectively. Consider ... is correct but $\text{S2}$ is incorrect $\text{S2}$ is correct but $\text{S1}$ is incorrect Both are correct Both are incorrect
GO Classes
asked
in
Programming
Aug 7, 2022
by
GO Classes
255
views
goclasses-scholarship-test1
goclasses
programming
programming-in-c
pointers
array-of-pointers
2-marks
4
votes
1
answer
9
GO Classes Scholarship 2023 | Test | Question: 22
Consider below two program fragments. Assume malloc is always successful, and sizes are as follows - sizeof (int *)=8 bytes sizeof ( double)=8 bytes sizeof ( char )=1 byte sizeof ( int )=4 byte Program 1 int **p; p = (int ... run time error, but Program $1$ will run fine. Both programs will always run fine. Both programs may produce run time errors.
GO Classes
asked
in
Programming
Aug 7, 2022
by
GO Classes
303
views
goclasses-scholarship-test1
goclasses
programming
programming-in-c
pointers
2-marks
4
votes
3
answers
10
GO Classes Scholarship 2023 | Test | Question: 30
Consider the following C code fragement - #include<stdio.h> int main() { char t[] = "abcdefghij"; int *p = t; p+=2; char *c = (char *)p; printf("%c", *c); } Which of the following is/are correct? The ... $\textsf{ i "}$ (without quotes).
GO Classes
asked
in
Programming
Aug 7, 2022
by
GO Classes
448
views
goclasses-scholarship-test1
goclasses
programming
programming-in-c
array
pointers
multiple-selects
1-mark
Page:
1
2
3
4
5
6
...
9
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
Central Pollution Control Board CPCB Various Post Recruitment 2023
MP Rajya Sahkari Apex Bank Various Post Recruitment 2023
NITIE MUMBAI throgh GATE
PGCIL recruitment 2023 – Apply Online For 138 Posts through GATE
Admission guidance for GATE CSE 2023
Subjects
All categories
General Aptitude
(2.6k)
Engineering Mathematics
(9.4k)
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.7k)
Non GATE
(1.3k)
Others
(2.5k)
Admissions
(655)
Exam Queries
(848)
Tier 1 Placement Questions
(17)
Job Queries
(77)
Projects
(9)
Unknown Category
(866)
Recent questions tagged pointers
Recent Blog Comments
Please upload updated previous year question...
The last hardcopy that was made was for GATE 2022...
overall only 3 post .no post for gen male
for gen GS in the range of 720-750 approx.
can we get 2023 hark copy from amazon?