What is the output of following code :
#include <stdio.h>
int main(void) {char i[3] = {'a','l', 'i'}
for(int j = 0;j < 3 j++){printf('%c',i[j])}
printf('\n)
for(int j = 0; j< 3; j++){printf('%c',j[i]);}return 0;
}What is the output of following code :
#include <stdio.h>
int main(void) {char i[3] = {'a','l', 'i'}
for(int j = 0;j < 3 j++){printf('%c',i[j])}
printf('\n)
for(int j = 0; j< 3; j++){printf('%c',j[i]);}return 0;
}
2 Answers