void f(int *p, int m) {
m = m + 5;
*p = *p + m;
return;
}
void main() {
int i = 5, j = 10;
f(&i, j);
printf("%d", i + j);
}Related Programming & Data Structures PYQs
A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the followi…
Consider the C program: ```c void f(int, short); void main() { int i = 100; short s = 12; short *p = &s; // call t…
Consider the following C program: ```c #include<stdio.h> void mystery(int *ptra, int *ptrb) { int *temp; temp = ptrb; …
The function computes max value in integer array p[] of size n (n >= 1): ```c int max(int *p, int n) { int a = 0, b = n - 1; …
What will be the output of the C program? ```c void count(int n) { static int d = 1; printf("%d ", n); printf("%d ", d…
What will be the output of the pseudo-code when parameters are passed by reference and dynamic scoping is assumed? a = 3; ```c voi…
Free account benefits
Turn practice into measurable progress
Public PYQs and reference pages stay free. Sign in when you want GATEverse to remember what you studied and guide what to practise next.