Write a C program using array compared two array the value. #include <stdio.h> int main (){ int a [ 5 ], b [ 5 ], i , flag ; printf ( "enter the 5 value of a :" ); for ( i = 0 ; i <= 4 ; i ++) scanf ( "%d" ,& a [ i ]); printf ( "enter the 5 value of b :" ); for ( i = 0 ; i <= 4 ; i ++) scanf ( "%d" ,& b [ i ]); for ( i = 0 ; i <= 3 ; i ++) if ( a [ i ]== b [ i ]) { flag = 1 ; printf ( "%d" , flag ); /* code */ } else flag = 0 ; printf ( "%d" , flag ); return 0 ; }
"Code with aryan daily" is the place where you will find all types computer knowledge form beginners to advance