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
1
vote
3
answers
91
NIELIT 2017 OCT Scientific Assistant A (IT) - Section B: 29
Consider the following declaration. int a, *b = &a, **c = &b; a = 4; **c = 5; If the statement b = (int *)**c Is appended to the above program fragment then Value of $b$ becomes $5$ Value of $b$ will be the address of $c$ Value of $b$ is unaffected None of these
admin
asked
in
Programming in C
Apr 1, 2020
by
admin
913
views
nielit2017oct-assistanta-it
programming
pointers
2
votes
2
answers
92
NIELIT 2017 DEC Scientific Assistant A - Section B: 42
Which of the following is illegal declaration in $C$ language? char*str ="Raj is a Research scholar"; char str[25] ="Raj is a Research scholar"; char str[40] ="Raj is a Research scholar"; char[]str ="Raj is a Research scholar";
admin
asked
in
Programming in C
Mar 31, 2020
by
admin
1.8k
views
nielit2017dec-assistanta
programming-in-c
pointers
array-of-pointers
4
votes
1
answer
93
NIELIT 2016 MAR Scientist B - Section C: 14
Prior to using a pointer variable it should be declared. initialized. both declared and initialized. none of these.
admin
asked
in
Programming in C
Mar 31, 2020
by
admin
2.1k
views
nielit2016mar-scientistb
programming-in-c
pointers
4
votes
4
answers
94
NIELIT 2016 DEC Scientist B (IT) - Section B: 11
What is the meaning of following declaration? int(*p[7])(); $p$ is pointer to function $p$ is pointer to such function which return type is array $p$ is array of pointer to function $p$ is pointer to array of function
admin
asked
in
Programming in C
Mar 31, 2020
by
admin
1.4k
views
nielit2016dec-scientistb-it
programming-in-c
pointers
array-of-pointers
2
votes
1
answer
95
NIELIT 2017 July Scientist B (IT) - Section B: 34
Output of following program? #include<stdio.h> int main() { int *ptr; int x; ptr=&x; *ptr=0; printf("x=%d\n",x); printf("*ptr=%d\n",*ptr); *ptr+=5; printf("x=%d\n",x); printf("*ptr=%d\n",*ptr); (*ptr)++; ... $x=$garbage value $^*ptr=$garbage value $x=0$ $^*ptr=0$ $x=0$ $^*ptr=0$ $x=0$ $^*ptr=0$
admin
asked
in
Programming in C
Mar 30, 2020
by
admin
663
views
nielit2017july-scientistb-it
programming-in-c
pointers
2
votes
1
answer
96
NIELIT 2017 July Scientist B (IT) - Section B: 35
Assume that float takes $4$ bytes, predict the output of following program. #include<stdio.h> int main() { float arr[5]={12.5,10.0,13.5,90.5,0.5}; float *ptr1=&arr[0]; float *ptr2=ptr1+3; printf("%f",*ptr2); printf("%d",ptr2-ptr1); return 0; } $90.500000\:\:3$ $90.500000\:\:12$ $10.000000\:\:12$ $0.500000\:\:3$
admin
asked
in
Programming in C
Mar 30, 2020
by
admin
2.5k
views
nielit2017july-scientistb-it
programming-in-c
pointers
array-of-pointers
10
votes
1
answer
97
ISRO2020-63
What is the output in a $32$ bit machine with $32$ bit compiler? #include<stdio.h> rer(int **ptr2, int **ptr1) { int *ii; ii=*ptr2; *ptr2=*ptr1; *ptr1=ii; **ptr1*=**ptr2; **ptr2+=**ptr1; } void main(){ int var1=5, var2=10; int *ptr1=&var1,*ptr2=&var2; rer(&ptr1,&ptr2); printf("%d %d",var2,var1); } $60,70$ $50,50$ $50,60$ $60,50$
srestha
asked
in
Programming in C
Jan 12, 2020
by
srestha
3.9k
views
isro-2020
programming
programming-in-c
normal
pointers
12
votes
2
answers
98
ISRO2020-62
What is output of the following ‘C’ code assuming it runs on a byte addressed little endian machine? #include<stdio.h> int main() { int x; char *ptr; x=622,100,101; printf("%d",(*(char *)&x)*(x%3)); return 0; } $622$ $311$ $22$ $110$
srestha
asked
in
Programming in C
Jan 12, 2020
by
srestha
5.7k
views
isro-2020
programming
programming-in-c
normal
pointers
1
vote
2
answers
99
How Self-Referential Structure works?
I have learnt that self-referential structure is one which contains a structure of same type in it as an element. But I have a doubt regarding how that line is compiled successfully (i.e, how compiler knows how much space should be allocated and ... not yet finished? struct node { int data; struct node *next; }; correct me If I am wrong in understanding this.
Sathuri Bharath
asked
in
Programming in C
Jun 12, 2019
by
Sathuri Bharath
1.2k
views
programming-in-c
pointers
4
votes
4
answers
100
Pointers address
https://gateoverflow.in/?qa=blob&qa_blobid=14433986388826671915 int main() { int a = 10; int *b = &a; scanf("%d",b); printf("%d",a+50); } What will be the Output of the following code if input given is $25$ ?
Manoj Kumar Pandey
asked
in
Programming in C
May 22, 2019
by
Manoj Kumar Pandey
820
views
programming-in-c
pointers
1
vote
1
answer
101
Can anyone please explain this question step by step
#include<stdio.h> int main(){ int (*a)[5]; int arr[5][5]={ {10,65,300,400,500}, {100,20,3000,40,5000} }; a = arr; ++a ; char *ptr = (char*)*a; ++a ; printf("%d %d %d",**a,*arr[1],*ptr); return 0; }
kaveeshnyk
asked
in
Programming in C
May 7, 2019
by
kaveeshnyk
1.1k
views
programming-in-c
pointers
array-of-pointers
programming
1
vote
1
answer
102
Array of Pointers-Self Doubt
$1)$ How to access array element with array of pointers? By pointer to an array we can access like this $(*a)[0]$,$(*a)[22]$, .. like this right? but how with array of pointer? $2)$Check these three codes , one of them use array and one of them use ... main(void) { if(*(ptr+5)==*(ptr+3)){ printf("Equal"); } else{ printf("Not Equal"); } return 0; }
srestha
asked
in
Programming in C
May 5, 2019
by
srestha
840
views
pointers
programming-in-c
0
votes
1
answer
103
#pointer #output #error-assignment-makes-pointer-from-integer-without-a-cast #self-doubt
#include <stdio.h> #include<stdlib.h> int main() { //code char *ptr,s[]="debasree"; ptr=s[0]; printf("%s\n",*ptr); return 0; } I get this warning in geeks for geeks ... explain what is the warning saying? i googled a lot but could not grasp it pls pls pls pls explain...
debasree88
asked
in
Programming in C
Apr 24, 2019
by
debasree88
2.5k
views
pointers
output
0
votes
0
answers
104
Ullman(2e) Exercise-8.3.2 page no-524 Code Generation
Generate code for the following three-address statements assuming stack allocation where register SP points to the top of the stack x = 1 x=a x = a + 1 x = a+b The two statements x = b * c y = a + x
aditi19
asked
in
Compiler Design
Apr 1, 2019
by
aditi19
976
views
compiler-design
intermediate-code
target-code-generation
stack
pointers
1
vote
2
answers
105
Pointer question-C
Anyone kindly tell the reason why the outputs are differ ? #include<stdio.h> int main() { char *ptr = "geeksforgeeks"; printf("%c\n", *&*&*ptr); getchar(); return 0; } Output-g #include<stdio.h> int main() { char *ptr = "geeksforgeeks"; printf("%s\n", *&*&ptr); getchar(); return 0; } Output-geeksforgeeks
val_pro20
asked
in
Programming in C
Mar 24, 2019
by
val_pro20
1.5k
views
programming-in-c
pointers
1
vote
0
answers
106
Geeks for Geeks : C Program
In the above 4 Statements which would print 123 as output ? Explain also.
Ashish Roy 1
asked
in
Programming in C
Mar 16, 2019
by
Ashish Roy 1
1.7k
views
programming-in-c
output
pointers
programming
2
votes
1
answer
107
Programming in C: What is the output of program? Explain for all the statements
int main() { int m=44; int *p=&m; int &r=m; int n=(*p)++; int *q=p-1; r=--*(p)+1; ++*q; printf("m=%d n=%d r=%d",m,n,r); return 0; } Options: $m=44,\ n=46,\ r=45$ $m=45,\ n=44,\ r=45$ $m=46,\ n=44,\ r=46$ $m=46,\ n=43,\ r=46$
Nishi Agarwal
asked
in
Programming in C
Mar 10, 2019
by
Nishi Agarwal
1.6k
views
programming-in-c
pointers
1
vote
2
answers
108
Array
Tell me the difference : &(arr+1) and &arr+1
Ahsanul Hoque
asked
in
Programming in C
Feb 17, 2019
by
Ahsanul Hoque
1.3k
views
programming-in-c
pointers
array
0
votes
1
answer
109
is it dangling pointer
is it dangling pointer ? int main(void) { int* p; printf("%d",*p); return 0; } https://ideone.com/IN77el
Gurdeep Saini
asked
in
Programming in C
Feb 1, 2019
by
Gurdeep Saini
652
views
pointers
programming-in-c
1
vote
1
answer
110
Applied Course | Mock GATE | Test 1 | Question: 17
What is the output of the following c program void fun1(int *a, int *b, int *c) { *a = *b; *b = *c; *c = *a; } Void fun2(int a, int b, int c) { a = b; b = c; c = a; } int main() { int a = 5, b =10, c =15; fun1(&a, &b, &c); fun2(a, b, c); printf("%d", a+b-2*c); return 0; } $20$ $40$ $5$ $-5$
Applied Course
asked
in
Programming in C
Jan 16, 2019
by
Applied Course
564
views
applied-course-2019-mock1
programming
programming-in-c
pointers
0
votes
1
answer
111
C Programming
main() { unsigned int i= 255; char *p= &i; int j= *p; printf("%d\n", j); unsigned int k= *p; printf("%d", k); } Both the outputs are -1. I have even tried with - int i = 255(3rd line). Still the output is -1. I don't understand how it is -1.
Psnjit
asked
in
Programming in C
Jan 12, 2019
by
Psnjit
1.2k
views
programming-in-c
output
programming
pointers
1
vote
1
answer
112
Output of following program(Self Doubt)
#include <stdio.h> main (){ unsigned x = -10; int X = 20; if (X > x) printf ("Hello"); else{ printf ("%d",x); printf ("Jello"); } }
Na462
asked
in
Programming in C
Jan 8, 2019
by
Na462
1.4k
views
programming-in-c
output
pointers
0
votes
0
answers
113
Function Pointer question
#include<stdio.h> int main ( ) { int demo ( ); // What is this and what does it do? demo ( ); (*demo) ( ); } int demo ( ) { printf("Morning"); }
gmrishikumar
asked
in
Programming in C
Jan 2, 2019
by
gmrishikumar
842
views
programming-in-c
pointers
array-of-pointers
functions
function-pointers
2
votes
0
answers
114
GATE Overflow | Mock GATE | Test 1 | Question: 36
#include<stdio.h> #define create_node struct node {char x, y;}; #define call_main int main() { #define create_pointer struct node *p=&obj; #define create_object(a,b) struct node obj={b+a,a}; #define print_value printf("%c", *((char*)p+1 ... are correct Only $2$ and $3$ are correct $1$, $2$ and $4$ are correct Only $3$ is correct
Ruturaj Mohanty
asked
in
Programming in C
Dec 27, 2018
by
Ruturaj Mohanty
767
views
go-mockgate-1
programming
pointers
programming-in-c
3
votes
2
answers
115
MadeEasy Subject Test 2019: Programming & DS - Programming In C
char *a = “MADEEASY”; char *b = “GATECSIT2019”; char *r = a; char *s = b; printf(“%d”, (int) strlen (b+3[r] – 1[s])); return 0; Whats the output? Answer given 8
Shamim Ahmed
asked
in
Programming in C
Dec 11, 2018
by
Shamim Ahmed
554
views
made-easy-test-series
programming
programming-in-c
pointers
0
votes
0
answers
116
MadeEasy Test Series: Programming & DS - Programming In C
jatin khachane 1
asked
in
Programming in C
Nov 23, 2018
by
jatin khachane 1
486
views
made-easy-test-series
programming
pointers
0
votes
1
answer
117
C programming
#include<stdio.h> void fun(int *p,int *q) { p=q; *p=q; } int i=0,j=1; int main() { fun(&i,&j); printf("%d%d",i,j); } What will be the output of i and j in 16-bit C Compiler?
Mr khan 3
asked
in
Programming in C
Nov 3, 2018
by
Mr khan 3
1.0k
views
programming-in-c
output
programming
pointers
Page:
« prev
1
2
3
4
5
6
7
8
9
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:...