What is a pointer in ‘C’? How is a pointer variable declared? Give examples and explain.Enumerate the utility of pointer variables.
A program in ‘C’ language contains the following declaration: static int x[8] = {1,2,3,4,5,6,7,8}; i) What is the meaning of x? ii) What is the meaning of (x + 2)? iii) What is the meaning of *x? iv) What is the meaning of (*x + 2)? v) What is the meaning of *(x + 2)?
What is a structure? How does a structure differ from a union? Give examples. For what kind of applications, union data structure is useful? How are arrays different from structure?
Comments
Leave a comment