C Programming
Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro.

1
2, 4
2, 3
1, 4
None of these

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the difference between a declaration and a definition of a variable?

Both can occur multiple times, but a declaration must occur first.
There is no difference between them.
A declaration occurs once, but a definition may occur many times.
Both can occur multiple times, but a definition must occur first.
A definition occurs once, but a declaration may occur many times.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;int value;printf("Enter your age:");value=scanf("%f", &age);if(value==0){printf("\\nYour age is not valid");}AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("\\n You have lived for %f seconds", AgeInSeconds);}

Complier error
Enter your age: xyz You have lived for 0 seconds
Enter your age : xyz Your age is not valid
Enter your age: xyz Your age is not valid

ANSWER DOWNLOAD EXAMIANS APP