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 / fazlur rahaman naik

d is the right answer.

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

622


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

909


Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

600


What is structure of c program?

605


What is printf () in c?

578






Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1620


Explain what math functions are available for integers? For floating point?

611


how to execute a program using if else condition and the output should enter number and the number is odd only...

1654


Difference between MAC vs. IP Addressing

641


What is the purpose of void pointer?

599


What does malloc () calloc () realloc () free () do?

560


What is the difference between malloc() and calloc() function in c language?

604


What does it mean when a pointer is used in an if statement?

602


Write a program to print "hello world" without using a semicolon?

595


Difference between pass by reference and pass by value?

658