Awesome q2a theme
Ask us anything
Toggle navigation
Email or Username
Password
Remember
Login
Register
|
I forgot my password
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Blogs
Previous Year
Exams
Recent questions tagged pointers
0
votes
0
answers
Book: Gate Overflow Question no. 4.7.20 in the Programming in C section
asked
5 days
ago
in
Programming
by
hadarsh
(
5
points)
|
13
views
pointers
programming
0
votes
1
answer
C- Programming Question on Pointers
What will be the output of the following program? #include "stdio.h" int main() { char a[] = { 'P', 'Q', 'R', 'S' }; char* p = &a[0]; *p++; printf("%c ", *++p); } According to my solution As we know that ... answer comes out to be Q , but when I ran the program, then it showed my R as the output. Can someone please help me with this?
asked
Dec 2, 2020
in
Programming
by
Samarth Kejriwal
(
7
points)
|
38
views
programming
pointers
arrays
0
votes
1
answer
Made Easy test series
Why option A is wrong?
asked
Oct 17, 2020
in
Programming
by
Sinchit
(
17
points)
|
38
views
pointers
0
votes
1
answer
Made easy theory book, Self doubt in pointers.
Here in this question answer is option a. But I think it would be option c please clear my doubt with proper explanation.
asked
Sep 12, 2020
in
Programming
by
sarthakdarji
(
9
points)
|
39
views
pointers
selfdoubt
0
votes
0
answers
Self doubt in programming, made easy theory book
asked
Sep 11, 2020
in
Programming
by
sarthakdarji
(
9
points)
|
29
views
pointers
selfdoubt
0
votes
1
answer
Self Doubt - Pointers
Is occurrence of segmentation fault in case of uninitialized pointers compiler dependent ?
asked
Sep 9, 2020
in
Programming
by
simi2426
(
5
points)
|
43
views
selfdoubt
pointers
0
votes
0
answers
Understanding pointers in C (Yashavant Kanetkar)
Can anyone please provide the output of the below code with proper explanation:- #include <stdio.h> show(int(*q)[3][4],int ii,int jj,int kk){ int i,j,k; int *p; for(i=0;i<ii;i++){ for(j=0;j<jj;j++){ p=q[i][j]; printf("\nThis is %d\n",q[i][ ... 7,8, 9,3,2,1}, { 2,3,5,7, 4,3,9,2, 1,6,3,6} }; show(a, 2, 3,4 ) ; } Thanks in advance.
asked
Sep 9, 2020
in
Programming
by
Pratyush Priyam Kuan
(
1.1k
points)
|
51
views
pointers
programming
arrays
0
votes
0
answers
pointers in 2d array
according to me answer is 1(3rd one ) but they have given 2 (2nd and 3rd ) are correct how can II be correct function signature?
asked
Jul 2, 2020
in
Programming
by
abcd9982
(
87
points)
|
43
views
made-easy-test-series-programming-language
arrays
pointers
0
votes
1
answer
self doubts pointers
#include<stdio.h> int main() { int x=480; char *y; y=&x; *++y=4; printf("%d,%d",*y,x); return 0; } op?
asked
Jun 13, 2020
in
Programming
by
Swati Dubey
(
7
points)
|
37
views
pointers
0
votes
0
answers
Gate-2001:2 MARKS
int *g(void) { int *px; px = (int*) malloc (sizeof(int)); *px = 10; return px; }
asked
Jun 9, 2020
in
Programming
by
prajjwalsingh_11
(
15
points)
|
16
views
pointers
programming
data-structrues
0
votes
0
answers
GATE2018-2 Video Solution
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'
asked
Apr 18, 2020
in
Programming
by
admin
(
569
points)
|
8
views
gate2018
programming-in-c
programming
structures
pointers
normal
video-solution
0
votes
0
answers
GATE2018-29 Video Solution
#include<stdio.h> void fun1(char* s1, char* s2){ char* temp; temp = s1; s1 = s2; s2 = temp; } void fun2(char** s1, char** s2){ char* temp; temp = *s1; *s1 = *s2; *s2 = temp; } int main(){ char *str1="Hi", *str2 = "Bye"; fun1 ... of the program above is: $\text{Hi Bye Bye Hi}$ $\text{Hi Bye Hi Bye}$ $\text{Bye Hi Hi Bye}$ $\text{Bye Hi Bye Hi}$
asked
Apr 18, 2020
in
Programming
by
admin
(
569
points)
|
9
views
gate2018
programming-in-c
pointers
parameter-passing
normal
programming
video-solution
0
votes
0
answers
Made easy Mock test
can someone please explain the solution? answer is 26.
asked
Feb 5, 2020
in
Programming
by
nidhi1604
(
5
points)
|
49
views
pointers
madeeasytestseries
memocktest1programming
0
votes
0
answers
MadeEasy Test Series - Question on array of pointers
asked
Nov 25, 2019
in
Algorithms
by
luc_Bloodstone
(
19
points)
|
48
views
made-easy-test-series
pointers
algorithms
data-structures
0
votes
0
answers
pointer Assignment
#include<stdio.h> int main() { int a[5]={1,2,3,4,5}; int *ptr=(int*)(&a+1);//why typecasting has done here? printf("%d%d",*(a+1),*(ptr-1)); } output is 25.can someone explain this?
asked
Nov 14, 2019
in
Programming
by
Arun Rout
(
5
points)
|
40
views
programming
pointers
0
votes
0
answers
Self doubt pointers (programming)
What's the output? #include <stdio.h> main() { char *arr = "this is to test"; printf("%c,%c", *(arr), *(arr++) ); }
asked
Nov 5, 2019
in
Programming
by
Priyansh Singh
(
227
points)
|
90
views
pointers
0
votes
1
answer
Pointers : self Doubt
#include <stdio.h> void f(char**); int main() { char *argv[] = { "ab", "cd", "ef", "gh", "ij", "kl" }; f(argv); return 0; } void f(char **p) { char *t; t = (p += sizeof(int))[- ... of p when i use my intuition. in online compiler → printf( %u ,&argv) or printf( %d , argv) gives same addresses why it is so
asked
Aug 9, 2019
in
Programming
by
Aks9639
(
9
points)
|
29
views
pointers
programming
0
votes
0
answers
C programming output
#include <stdio.h> char str1[100]; char *mystery(char str[]) { static int i = 0; if (*str) { mystery(str+1); str1[i] = *str; i++; } return str1; } int main() { char str[] = "ehT etaG kooB"; printf("%s", mystery(str)); return 0; } Plz provide a detailed explanation
asked
Jul 25, 2019
in
Puzzles
by
s_dr_13
(
15
points)
|
32
views
c-programming-for-gate
pointers
+1
vote
2
answers
C Programming Pointers
Can someone explain the solution of this question? #include <stdio.h> char *c[] = {"GatsQuiz", "MCQ", "TEST", "QUIZ"}; char **cp[] = {c+3, c+2, c+1, c}; char ***cpp = cp; int main() { printf("%s ", **++cpp); ... 1][-1]+1); return 0; } (a) TEST sQuiz Z CQ (b) MCQ Quiz Z CQ (c) TEST Quiz Z CQ (d) GarbageValue sQuiz Z CQ
asked
Jul 23, 2019
in
Programming
by
yashu24
(
9
points)
|
59
views
c-programming-for-gate
pointers
0
votes
1
answer
#self doubt- programming
I have a doubt in accessing character from array of pointers to string. Char *a[ ]={"abc","defgh","ijklm","nok"}; How to access character 'k' from 3rd string i.e. ijklm Output:- k
asked
Jul 6, 2019
in
Programming
by
Ekta07_GATE
(
15
points)
|
23
views
programming
pointers
To see more, click for the
full list of questions
or
popular tags
.
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
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Recent Posts
New GATEOverflow PDFs
Guidelines to users
No Recent Blog Comments
8,957
questions
3,118
answers
14,337
comments
95,787
users