Recent questions tagged pointers

0 votes
3 answers
67
#include <stdio.h>int main(){ int a=20; int *ptr=&a; int x=a; printf ("%p\n",&*ptr); printf ("%p\n",&a); return 0;}Why both printf() line printing the s...
1 votes
1 answer
72
1 votes
1 answer
73
What will be the output of the following C code?#include<stdio.h int main() { int array[4] = {1, 2, 3, 4}; printf("%d\n", *array + array[0] + *array+1 + array[array ]); }...
9 votes
1 answer
76
3 votes
1 answer
79
6 votes
1 answer
82
12 votes
2 answers
86