aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Computer Programming
  • In C language, when are the two pointers said to be equal?
Multiple choice

In C language, when are the two pointers said to be equal?

  1. If they point to the same cell in an array

  2. If they point to the same variable

  3. Two pointers cannot be equal

  4. All of the above

  5. Only (1) and (2)

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Yes, both the statements are true.

Keep practicing — related questions

  • Which of the following statements is/are correct? A. We can create a reference to an array. B. A reference ...
  • Assume the following declarations in C++ int num [5] = {3, 4, 6, 2, 1} ; int *p = num; Which of the followi...
  • Which of the following statements is correct for the given program? #include<stdio.h> #include<conio.h> int...
  • In C programming, what does I equal at the end of the following piece (snippet) of code? i =1; i *=5; i +=3;
  • Consider the following program fragment. main() { int a,b,c; b=2 ; a= 2*(b++); c = 2*(++b); } Which one of ...
  • A variable P is called pointer if
  • A variable P is called pointer if
  • char ptr1[] = "Hello World"; char *ptr2 = malloc( 5 ); ptr2 = ptr1; What is wrong with the above code (assu...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Fundamentals (2381 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy