V
venkatarao0
file1.cpp
file2.cpp
#include<iostream> int
arry[10] ={0};
usging namespace std;
extern int arry[];
main()
{
cout << sizeof(arry); // hear its giving compiler error
}
Same program working fine in .c file( C program) and giving '0' size
why its giving compiler error in C++. Please give reply to me Thanks
in advance
Thanks & Regards,
Venkat.
file2.cpp
#include<iostream> int
arry[10] ={0};
usging namespace std;
extern int arry[];
main()
{
cout << sizeof(arry); // hear its giving compiler error
}
Same program working fine in .c file( C program) and giving '0' size
why its giving compiler error in C++. Please give reply to me Thanks
in advance
Thanks & Regards,
Venkat.