MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Find the Correct statement:
A
int a[5] = (3, 4, 5, 6);
B
int a(3) = {1, 2, 3};
C
int a[3] = [1, 2, 3];
D
int a[5] = {1, 2, 3};
Explanation: 

Detailed explanation-1: -Precedence of operators In C, the precedence of * is higher than-and = .

Detailed explanation-2: -9. Which is the correct statement about operator overloading? Explanation: Both arithmetic and non-arithmetic operators can be overloaded. The precedence and associativity of operators remains the same after and before operator overloading.

Detailed explanation-3: -An array is defined as the collection of similar types of data items stored at contiguous memory locations. Arrays are the derived data type in C programming language which can store the primitive type of data such as int, char, double, float, etc.

Detailed explanation-4: -If both operands are different, output is 1. 7) What is the output of Left Shift Operator « on (00011000«2).? Explanation: Left Shift Operator « shifts bits on the left side and fills Zeroes on the Right end.

There is 1 question to complete.