Gate 2010 pyq C Programming | What does following program print?void f(int *p, int *q){p=q; *p=2;}

  Рет қаралды 544

Gate CS pyqs - the other way [Eng]

Gate CS pyqs - the other way [Eng]

Күн бұрын

What does the following program print?
#include stdio.h
void f(int *p, int *q)
{
p = q;
*p = 2;
}
int i = 0, j = 1;
int main()
{
f(&i, &j);
printf("%d %d
", i, j);
getchar();
return 0;
}
(A) 2 2
(B) 2 1
(C) 0 1
(D) 0 2

Пікірлер: 1
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
struct Basics | C Programming Tutorial
24:44
Portfolio Courses
Рет қаралды 160 М.
Gate 2016 pyq C Programming | What is output of following C program?void count(int n){static int d=1
7:51
5 Simple Steps for Solving Dynamic Programming Problems
21:27
Reducible
Рет қаралды 1,1 МЛН
Call By Value & Call By Reference in C
8:34
Neso Academy
Рет қаралды 1,4 МЛН
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Coding Ray Tracing in C
1:56:48
HirschDaniel
Рет қаралды 117 М.