453 views
0 votes
0 votes
#include<stdio.h>
int(*foo())[3]
{
  static int a[3]={1,2,3};
  printf("%d",*a);
  return &a;
}
 
int main()
{
  static int (*p)[3];
  p=foo();
  printf("%d",*(*p+2));
  return 0;
}

 

i try to make picture representation 

 

i think this is wrong please make correct 

Please log in or register to answer this question.

Related questions

116
views
2 answers
1 votes
kirmada asked Jun 20
116 views
#include <stdio.h> int main() { // Write C code here int i=10,*p,**q,***r; p=&i; *p=15; q=&p; **q=20; r=&q; ***r=*p+1; printf("%d",i); return 0; }answer the output as integer _________
124
views
2 answers
1 votes
kirmada asked Jun 20
124 views
#include <stdio.h> int main() { int (*a)[2]; int arr[4][4]={1,2,3,4,6,7,8,9}; a=arr; ++a; printf("%d",**a); return 0; }what is the answer NUMARICAL--------------------------------?
77
views
1 answers
1 votes
shivamSK asked Jun 19
77 views
#include <stdio.h> void f(int (*x)(int)); int myfoo(int i); int (*foo)(int) = myfoo; int main() { f(foo(10)); } void f( ... i; }sanfoundry C programming Questiona) Compile time errorb) Undefined behaviourc) 10 11d) 10 Segmentation fault 
86
views
2 answers
1 votes