Recent questions tagged array-of-pointers

3 3 votes
1 1 answer
248
248 views
Assume the following $C$ code is inside the main function and there are no syntax or runtime errors:int A[] = {3, 1, 4, 9, 7, 2, 5, 8}; int *p = &(A[3]) - 2; p += *p; pri...
6 6 votes
4 answers 4 answers
1.8k
1.8k views
Pointer $p$ to an array of integers (of size $2$ Bytes) is initialised to $200$. What is the value of $\mathrm{p}+3$ ?$206$$203$$212$$204$ 
0 0 votes
0 0 answers
562
562 views
If $n$ has the value $3$, then the statement $a[++n]=n++$;(A) assigns $3$ to $a[5]$(B) assigns $4$ to $a[5]$(C) assigns $4$ to $a[4]$(D) assigns a compiler-dependent valu...
3 3 votes
2 2 answers
974
974 views
#include <stdio.h int main() { int (*a) ; 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 ?
1 1 vote
0 0 answers
687
687 views
#include <stdio.h void f(int (*x)(int)); int mysh(int); int (*sh)() = mysh; int main() { f(sh); sh++; for(int x=sh;x>=0;x ){ if(x){ printf("i am here"); }else{ printf("yo...
7 7 votes
1 1 answer
1.0k
1.0k views
What will be the output of the following C program:#include<stdio.h int main() { char* my_words[] = {"Abin", "Mahesh", "Seema", "Palak"}; char *p; p = my_words[3]; printf...