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 are bit fields? What is the use of bit fields in a structure declaration?
What are unions in c?
What is a string?
What are the advantages of using linked list for tree construction?
What is use of null pointer in c?
What are run-time errors?
What is a stream in c programming?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
write a program to concatenation the string using switch case?
I need testPalindrome and removeSpace
#include
What is pivot in c?
Write a Program to find whether the given number or string is palindrome.
In C language what is a 'dangling pointer'?
How can you access memory located at a certain address?
Can you write the algorithm for Queue?