retagged by
376 views
5 votes
5 votes

Consider the below program :
 

#include <stdio.h>
void fun (int[0][3]);

int main(void)
{
    int k[3][3]= {{1,2,3}, {4,5,6},{7,8,9}};
    fun(k);
    printf("%d\n", k[2][1]);
    return 0;
}

void fun(int p[][3])
{
    ++p;
    p[1][1] = 9;
}

The output of the above program is : ______.

retagged by

1 Answer

Answer:

Related questions

3 votes
3 votes
1 answer
2
Bikram asked May 14, 2017
251 views
Consider the below $C$ code:#include<stdio.h int main() { char a[] = "gateoverflow"; char *p = a; printf("%s", p+p[3]-p ); }The output will be : gate eoverflow overflo...