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
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
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
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.
What is structure of c program?
What is printf () in c?
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.
Explain what math functions are available for integers? For floating point?
how to execute a program using if else condition and the output should enter number and the number is odd only...
Difference between MAC vs. IP Addressing
What is the purpose of void pointer?
What does malloc () calloc () realloc () free () do?
What is the difference between malloc() and calloc() function in c language?
What does it mean when a pointer is used in an if statement?
Write a program to print "hello world" without using a semicolon?
Difference between pass by reference and pass by value?