Hello students welcome to CSE Study247 , Today I am provide you MCQs on Pointer in C.
This page provide 20 Multiple choice question with Answer that is very useful of Computer science students like preparation of many exam Like ( ISRO,DRDO ,Semester, Interview, TCS , Railway & another Government Sector)
❤️ TOP 500+ C Programming Question and Answer
C programming is the basic language of programming that help to learn another language. So this MCQ is very useful for you.
C is a general purpose ,high level language that originally developed by Dennis Ritchie to develop the UNIX operating system at Bell labs.
Q.1 A Pointer is a variable that stores the ____ of another variable?
- A) Value
- B) Address
- C) Name
- D) All of these
Q.2 Which of the following is the address-of operator?
- A) *
- B) #
- C) &
- D) @
Q.3 Which of the following is the dereferencing (indirection) operator?
- A) *
- B) #
- C) &
- D) @
Q.4 Which of the following types of addresses are stored in a pointer variable?
- A) char
- B) int
- C) float
- D) All of these
Q.5 Which operator can be applied to pointer variables?
- A) Casting
- B) Division
- C) Multiplication
- D) None of these
Q.6 Find the output of the following program: char *p; printf('%d %d', sizeof(*p), sizeof(p));
- A) 0 1
- B) 1 0
- C) 1 2
- D) 2 1
Q.7 What is a Pointer?
- A) Variable that stores value
- B) A variable that stores the address of another variable
- C) A Keyword used to create variables
- D) None of these
Q.8 The '*' symbol, when used as an operator with an existing pointer, is called the:
- A) Address operator
- B) Value at operator
- C) Scope Resolution operator
- D) None
Q.9 A pointer variable is declared by preceding the variable name with which sign?
- A) .
- B) &
- C) *
- D) @
Q.10 In C, how is a pointer variable to an integer correctly declared?
- A) int p*;
- B) int -p*;
- C) int *p;
- D) int*p+
Q.11 Can a pointer variable be returned by a function?
- A) True
- B) False
- C) May be
- D) Can't be said
Q.12 Which pointer denotes the object currently calling a member function?
- A) This pointer
- B) Null pointer
- C) Zero pointer
- D) None
Q.13 Find the output: int p = 1; int *ptr = &p; printf('%d', *ptr);
- B) 1
- C) Compile time error
- D) None
Q.14 Find the output: int p = 5; int *ptr = &p; *ptr += 1; printf('%d %d', *ptr, p);
- A) 5 6
- B) 6 5
- C) 6 6
- D) None
Q.15 What is the advantage of using a pointer?
- A) Accessing array elements is faster
- B) It decreases program execution speed
- C) It reduces program complexity
- D) None
| 1. Official Telegram | Click Here |
| 2. Telegram For CSE MCQs | Click Here |
| 3. You Tube | Click Here |