Inactive Tutor answered 05/03/20
Tutor
New to Wyzant
#include <stdio.h>
int main()
{
int days[] = {1,2,3,4,5};
int *ptr = days;
printf("%u\\n", sizeof(days)/4);
// printf("%u\\n", sizeof(ptr));
return 0;
}
Inactive Tutor answered 05/03/20
#include <stdio.h>
int main()
{
int days[] = {1,2,3,4,5};
int *ptr = days;
printf("%u\\n", sizeof(days)/4);
// printf("%u\\n", sizeof(ptr));
return 0;
}
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.