What is the output of C program?int main(){int a[] = {1, 2, 3, 4};int b[4] = {5,6,7,8};printf(“%d,%d”,a[2],b[3]);}
Answers
Answered by
0
search
Sign In
Home
Courses
Hire With Us
Algorithmskeyboard_arrow_down
Data Structureskeyboard_arrow_down
Languageskeyboard_arrow_down
Interview Cornerkeyboard_arrow_down
GATEkeyboard_arrow_down
CS Subjectskeyboard_arrow_down
Studentkeyboard_arrow_down
GBlog
Puzzles
What's New ?
C Arrays
1234
Question 1
Predict the output of below program:
#include <stdio.h>
int main()
{
int arr[5];
// Assume that base address of arr is 2000 and size of integer
// is 32 bit
arr++;
printf("%u", arr);
return 0;
}
Similar questions