Computer Science, asked by ujwalrathod949, 11 months ago

Which of the following is the correct output for the program given below? #include<stdio.h> void main() { int a[5]={2, 3}; printf("\n%d %d %d", a[2], a[3], a[4] ); ​

Answers

Answered by rupeshpatil9370
0

Answer:

a[5]={2, 3}; printf("\n%d %d %d", a[2], a[3], a[4] );

Answered by adventureisland
0

The output of this program 0 0 0

Explanation:

Void:

  • When the function return type void is used in computer programming, it means the function does not return a value.
  • The keyword void in a pointer declaration denotes that the pointer is universal.
  • When the parameter list of a function contains the word void, it signifies the function has no parameters.

%d:

  • percent d and percent I are format specifiers in the C programming language.
  • where percent d identifies the type of variable as decimal and percent I specify the type as an integer.
Similar questions