Computer Science, asked by Suraj0078, 5 months ago

check Your Understanding
1. A pointer is
(2) A variable that stores address of an instruction
b) A variable that stores address of other variable
(c) A keyword used to create variables
(d) None of these
2. The reason for using pointers in a C program is
(a) Pointers allow different functions to share and modify their local variables.
(b) to pass large structures so that complete copy of the structure can be avoided.
(0) Pointers enable complex "linked" data structures like linked lists and binary
trees.
(2) All of the above
3. Address stored in the pointer variable is of type
(a) Integer
(b) Float
(c) Array
(d) Character
4. In order to fetch the address of the variable we write preceding --sign before
variable name.
(a) Percent(s)
(b) Comma()
(C) Ampersand(6)
(d) Asteric(*)
5. Comment on this const int *ptr;
(a) You cannot change the value pointed by ptr
(b) You cannot change the pointer ptr itself
(c) Both (a) and (b)
(2) You can change the pointer as well as the value pointed by it​

Answers

Answered by amitsingh1234555
0

Mesopotamian civilizations

Similar questions