fork download
#include 
using namespace std;

int main() {
	int a[] = {1, 2, 3, 4, 5, 6};
	cout << "Correct: The number of elements in a is " << sizeof a / sizeof &a[0] << endl;
	cout << "Wrong: The number of elements in a is " << sizeof a << endl;
	return 0;
}
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
Correct: The number of elements in a is 6
Wrong: The number of elements in a is 24