• Register
0 votes
52 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

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 5 2
10,530 points

Related questions

0 votes
2 answers 72 views
72 views
Problem: Which of the following is not a valid C++ identifier?
asked Mar 9 ArifulIslam 5.7k points
0 votes
0 answers 10 views
10 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 ArifulIslam 5.7k points
0 votes
2 answers 117 views
117 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 ArifulIslam 5.7k points
0 votes
1 answer 56 views
56 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 maddi86 5.4k points
0 votes
1 answer 19 views
19 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 HenryL 620 points