Question: What is wrong with the following program? int main ( ) { int some _ ints [ 5 ] = { 1 , 2 ,
What is wrong with the following program?
int main
int someints;
for int p someints; p; p
p ;
return ;
main
main indexes out of bounds into someints
main leaks the memory pointed to by someints
someints points to uninitialized memory
the for loop is missing a curly brace, so this code will not compile
nothing is wrong with this program
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
