cs201-midterm-solved-mcqs-with-reference
cs201-midterm-solved-mcqs-with-reference
Question No: 18
(M-1)
What is meant by C++ statement: const int *ptr = &x;
Question No: 19
(M-2)
What is a truth Table?
Question No: 20 ( M - 3 )
(i) An array day is declared as: int day[] = {1, 2, 3, 4, 5, 6, 7};
How many elements does array 'day' has?
(ii) If the declaration is changed as: int day[7] = {1, 2, 3, 4, 5, 6, 7};
How many elements does array 'day' has?
Question No: 21 ( M - 5 )
What are similarities and differences between Structures and Unions?
Question No: 22 ( M - 10 )
Write a void function( ); that takes integer numbers from the user and then
displays the sum of odd and even numbers entered by the user. Your program
should terminate if user enters a negative number?