#include <iostream> using namespace std; int main() { int a[]={1,2,3,4}; for(int x=0;x<4;x++) { a[0]+=a[x]; } | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

#include <iostream> using namespace std; int main() { int a[]={1,2,3,4}; for(int x=0;x<4;x++) { a[0]+=a[x]; }

What Output of this

3rd May 2019, 3:06 AM
Husaain Naqvi
2 Answers
+ 2
2
3rd May 2019, 3:10 AM
Muhammad Wahab Sethi
Muhammad Wahab Sethi - avatar
+ 5
You don't have any statement for printing output, this code doesn't give any output.
3rd May 2019, 4:03 AM
Ipang