Professional Documents
Culture Documents
1. State whether the below variables declaration is valid or not? If it’s invalid give a reason.
i. char _ic_number;
i. 500
ii. 78000
iii. 78.86
iv. A
v. &
vi. False
vii. 1000000000000
3. Write a C++ statement to accomplish each of the following task.
#include <iostream.h>
void main()
{
float average;
int reminder, score1, score2, score3,score4;
score1=11;
score2=12;
score3=13;
score4=10;
score2=15;
cout<<”score1 = “<<score1<<endl;
cout<<”score2 = “<<score2<<endl;
cout<<”score3 = “<<score3<<endl;
cout<<”score4 = “<<score4<<endl;
}