• Register
0 votes
109 views

Problem:

I am learning programming, need to clear my query that,
Which of the following statements is not valid C++ code?

int ptr = &num1;

int ptr = int *num1;

float num1 = &ptr2;

 
7 5 3
5,380 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution:

All of these are invalid
(int ptr=&num1;
int ptr=int *num1;
float num1=*ptr2; )
 
Hope you understand it 
8 6 2
10,530 points

Related questions

0 votes
2 answers 264 views
264 views
Problem: Which of the following is not a valid C++ identifier?
asked Mar 9, 2020 ArifulIslam 7.5k points
0 votes
0 answers 17 views
17 views
Problem: Which of the following statements is NOT true about the database approach? A disadvantage to the database approach is isolated data. A database can support only one logical A database can support many physical views A database can support many logical views A database can support up to 3 logical views
asked Aug 4, 2020 ArifulIslam 7.5k points
0 votes
1 answer 40 views
40 views
Problem; valid c++ identifiers
asked Feb 6 kaash_kashi 1.2k points
0 votes
2 answers 249 views
249 views
Problem: Which of the following is a valid C++ array definition? A) int array[0]; B) float $payments[10]; C) void numbers[5]; D) int array[10]; E) None of these
asked Apr 18, 2020 ArifulIslam 7.5k points
0 votes
1 answer 68 views
68 views
Problems: I am new to programming, I need help, can anyone help me? Which of the following is a valid C++ array definition? A) int array[0]; B) float $payments[10]; C) void numbers[5]; D) int array[10]; E) None of these
asked Feb 14, 2020 maddi86 5.4k points
0 votes
1 answer 4 views
4 views
Problem: which of the following is not a valid sql command
asked 2 days ago jyoti goyal 2.1k points
0 votes
1 answer 36 views
36 views
Problem: Which of the following statements is true regarding the page file? -The page file should be on the same volume as the Windows installation. -The page file should be on its own volume -The page file should never be stored on a solid state drive -The page file should never be more than 2 GB in size
asked Jul 23, 2020 HenryL 620 points
0 votes
2 answers 26 views
26 views
Problem: Which of the following statements is true regarding the global catalog?​ a. The global catalog facilitates domain log ons between forests b. ​The global catalog only contains information about the domain in which it resides c. ​Only one global catalog exists per forest d. Only a single domain controller can be designated as a global catalog server
asked Apr 18, 2020 ArifulIslam 7.5k points
0 votes
2 answers 78 views
78 views
Problem: Which of the following statements is true of public folder sharing? a. Public folder sharing shares files from any location. b. Public folder sharing shares files from their original locations. c. Public folder sharing shares files from their default library locations. d. Public folder sharing places all shared files in a single location.
asked Apr 12, 2020 ArifulIslam 7.5k points
0 votes
2 answers 200 views
200 views
Problem: Which of the following statements is true of a database? (A) online analytical processing systems (B) online transaction management systems (C) enterprise resource planning systems (D) data mining analysis systems
asked Apr 6, 2020 ArifulIslam 7.5k points