305 views
0 votes
0 votes

what is the reason…..?for error..

1 Answer

0 votes
0 votes
during initialization itself you are using p and also assignment operator has right assosiativity so it finds what is this p

If you do

static int*p;

p=(int *) malloc(sizeof(p))

then its working

Related questions

3 votes
3 votes
3 answers
1
Laxman Ghanchi asked May 19, 2023
1,113 views
#include<stdio.h void print(int n) { printf("Hello "); if(n++ == 0) return ; print(n); n++; } int main() { void print(); print(-4); }How many times printf execute?? And H...
0 votes
0 votes
1 answer
2
Laxman Ghanchi asked May 19, 2023
658 views
#include<stdio.h>void print(int n){ printf("Hello "); if(n++ == 0) return ; print(n); n++;}int main(){ void print(); print(-4);}