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
7
votes
2
answers
1
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 33
On a $64$-bit system, which of the following C expressions is equivalent to the C expression $(x[2]+4)[3]?$ Assume $\mathrm{x}$ is declared as $\textsf{int}\ast \ast \textsf{x}$ $\ast((*(x+16))+28)$ $\ast((*(x+2))+7)$ $\ast(((* x)+2)+7)$ $(* \ast(x+2)+7)$
GO Classes
asked
in
Programming in C
Feb 5
by
GO Classes
427
views
goclasses2024-mockgate-14
programming
programming-in-c
pointers
1-mark
1
vote
1
answer
2
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 27
Consider the following C program:- #include <stdio.h> void ubswap(int **a, int **b) { int* temp = *a; *a = *b; *b = temp; } int main() { int x = 1, y = 9; int* u = &x; int* v = &y; int** a = &u; int** b ... $\text{ return 0 }?$ $x$ and $y$ $u$ and $v$ $a$ and $b$ None of the above
GO Classes
asked
in
Programming in C
Jan 21
by
GO Classes
448
views
goclasses2024-mockgate-12
goclasses
programming
programming-in-c
pointers
2-marks
1
vote
1
answer
3
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 22
What will the following print: int a, b, c, *d; a = 0; b = 1 ; c = 2 ; d = & a; (*d) += b+c; d = & b; (*d) += a+b+c ; printf("a= %i b=%i\n", a, b); $a=0, b=3$ $a=3, b=3$ $a=3, b=4$ $a=3, b=7$
GO Classes
asked
in
Programming in C
Jan 13
by
GO Classes
396
views
goclasses2024-mockgate-11
goclasses
programming
programming-in-c
pointers
1-mark
0
votes
0
answers
4
ISRO2020-62
#include int main() { int x; char *ptr; x=622,100,101; printf("%d",(*(char *)&x)*(x%3)); return 0; } In this question what is the meaning of “ *(char *)&x “ ? please explain it.
Ray Tomlinson
asked
in
Programming in C
Jul 5, 2023
by
Ray Tomlinson
859
views
isro-2020
programming-in-c
pointers
programming
0
votes
1
answer
5
Pointer, Address
For arrays with more given elements than its size, why does doing a[i] print garbage value but *a+i brings the correct value, despite them being the same thing (a[i] = *a+i) int a[2] = {1,2,3,4}; for ( int i =0 ; i<=4 ;i++){ printf(“%d” , a[i]; // gives 1, 2, Garbage , Garbage printf(“%d”, *a+i; // gives 1, 2, 3, 4 }
Mrityudoot
asked
in
Programming in C
Apr 24, 2023
by
Mrityudoot
663
views
programming-in-c
pointers
2
votes
2
answers
6
#Pointers #Pointer_initialization
Why can’t we do pointer initialization as int *p; *p=x; instead of p = &x; ?
Mrityudoot
asked
in
Programming in C
Apr 23, 2023
by
Mrityudoot
288
views
programming
pointers
3
votes
1
answer
7
Pointers
Please explain this question void main() { int a =300; char *ptr = (char*) &a ; ptr++; *ptr=2; printf("%d" , a); }
Storm_907
asked
in
Programming in C
Apr 16, 2023
by
Storm_907
450
views
pointers
programming-in-c
0
votes
1
answer
8
physics wallah dpp
_Harshit
asked
in
Programming in C
Mar 18, 2023
by
_Harshit
683
views
programming-in-c
pointers
physicswallah
0
votes
0
answers
9
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 in C
Jan 28, 2023
by
Sahil_Lather
210
views
operating-system
programming-in-c
data-structures
pointers
Page:
1
2
3
4
5
6
...
10
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 pointers
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:...