ExamCompetition Forum Question Papers Ask A Question Mock Test Learn & Earn Sign Up Login Menu



1 vote

Consider the following C++ code segment : int a = 10, b = 20; int *p = &a, *q = &b; p = q; With respect to the code segment mentioned above, which of the following statement is correct?

Asked on by | Votes 1 | Views: 118 | Tags: dsssb     | dsssb year     | dsssb pgt computer science male     | computer basics     | dsssb previous year     | Add Bounty

Consider the following C++ code segment :
int a = 10, b = 20;
int *p = &a, *q = &b;
p = q;
With respect to the code segment mentioned above, which of the following statement is correct?
1). Both a and b will contain 10
2). Both p and q will point to a
3). Both a and b will contain 20
4). Both p and q will point to b


Share on Facebook      Share on Whatsapp       Share on Twitter

DSSSB Facebook Group | Join DSSSB Telegram Group




1 answers

-1 vote
Answered by on | Votes -1 |
NA

Join Telegram Group




Answer This Question

Name:
Email:
Answer :
Sum of (3+5)
Submit: