(Solved):Q1. Int a 5, *ptr; Ptr= a; a. The statement will cause the program to stop running. b. The statements will cause a compilation time error. c. The second statement will assign the address of the View Answer…

 

Question

Q1. Int a{eq}displaystyle [5]

{/eq}, *ptr; Ptr= a;

a. The statement will cause the program to stop running.
b. The statements will cause a compilation time error.
c. The second statement will assign the address of the first element in the array.
d. None of the above.

Q2. char val{eq}displaystyle [50]

{/eq} = “Hello”

a. will result a run/execution time error.
b. will result a compilation time error.
c. will not result any error.

Scroll to top