#include <iostream>using namespace std; int main() { // your code goes here int *arr= {1, 22, 5, 20}; //NOT WORKING IN C++ cout<<arr.size(); return 0;}
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:6:25: error: scalar object 'arr' requires one element in initializer int *arr= {1, 22, 5, 20}; //NOT WORKING IN C++ ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!