Computer Sciences > Gate 2017 Set-2 > Functions
Consider the following function implemented in C:
The output of the printxy(1,1) is
void printxy(int x, int y)
{
int *ptr;
x = 0;
ptr = &x;
y = *ptr;
*ptr = 1;
printf("%d,%d", x, y);
}
{
int *ptr;
x = 0;
ptr = &x;
y = *ptr;
*ptr = 1;
printf("%d,%d", x, y);
}
The output of the printxy(1,1) is
Correct : Functions
Similar Questions
The following function computes the maximum value contained in an integer array p[] of size n (n >= 1)
int max(int *p, int n)
{
int a=0, b=n...
Consider the following C program.
void f(int, short);
void main()
{
int i = 100;
short s = 12;
short *p = &s;
&...
Consider the following program:
int f(int *p, int n)
{
if (n
Total Unique Visitors
Loading......