given the piece of code
int a[50];
int *pa;
pa=a;
to access the 6th element of the array which of the
following is incorrect?
a.*(a+5)
b.a[5]
c.pa[5]
d.*(*pa + 5)
Answer Posted / jaya prakash
Answer is D.
It is not a pointer to pointer.So we cannot use two stars.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is formal argument?
What are c header files?
Is fortran still used today?
Is calloc better than malloc?
Write a program which returns the first non repetitive character in the string?
When should the const modifier be used?
What does the function toupper() do?
What is scanf_s in c?
What is typedef?
Explain which function in c can be used to append a string to another string?
How do you write a program which produces its own source code as output?
What is #line in c?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Explain the difference between exit() and _exit() function?