0

Question on array

#include<iostream> using namespace std; int main() { int sxpr; sxpr = 1|2|3|4; int array[5] = {1,2,4,3,10}; cout<<array[sxpr]; The output is 7 can someone explain how.??

23rd Aug 2020, 9:44 AM
shrijith
shrijith - avatar
2 Réponses
+ 2
its an garbage output means your program has minor errors fix them and then u will get the required output thanks for giving ur time :) welcome! bye!
23rd Aug 2020, 11:06 AM
Sunita Zirange
Sunita Zirange - avatar