Given the following declaration Match each variable with the
Given the following declaration: Match each variable with their data type and possible statements:
Solution
num1 = (9) int (num1 is declared as int)
ptr1 =(5) int pointer (ptr is declared as integer pointer)
ptr2=&num2 - - >(8) valid correct giving address (here address is assigning to the pointer ptr2, because & refers to address)
var1 - - >(1)double (var1 is declared as double)
ptr3 - - >(10)double pointer (ptr3 is declared as double pointer)
