Recent questions tagged pointers

0 votes
0 answers
4
#includeint main(){ int x;char *ptr;x=622,100,101;printf("%d",(*(char *)&x)*(x%3));return 0; }In this question what is the meaning of “ *(char *)&x “ ? please ...
2 votes
2 answers
6
Why can’t we do pointer initialization as int *p; *p=x; instead of p = &x; ?
3 votes
1 answer
7
Please explain this question void main() { int a =300; char *ptr = (char*) &a ; ptr++; *ptr=2; printf("%d" , a); }
0 votes
1 answer
8