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
0
Answer:
a[5]={2, 3}; printf("\n%d %d %d", a[2], a[3], a[4] );
Answered by
0
The output of this program
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
Hindi,
5 months ago
Science,
5 months ago
Social Sciences,
11 months ago
Science,
11 months ago
Physics,
1 year ago