edited by
419 views

3 Answers

1 votes
1 votes

Option : C

You cannot assign anything to array variable without specifying indices. So, it's a compilation error.

edited by
0 votes
0 votes

Ans : C

Reason:-

∴ In C, the main function serves as the entry point for the program. According to the C standard, the main function should have a return type of int, indicating the exit status of the program. Therefore, it should be declared as int main(void) and not void main(). Using void main() is not standard and may cause a compiler error.

Answer:

Related questions