Few Questions
#4

It would be 5, as the first size-indicator after the name of the array is set to 5.

"sizeof(BusinessInfo)" will return 5, but your loop won't reach 5 as the loop-condition says: "id < sizeof(BusinessInfo)".

Inside the loop, you'll get values for "id" from 1 to 4.

After the loop, your variable is gone as it's only created inside the loop ("new id = 1").
Reply


Messages In This Thread
Few Questions - by Alvin007 - 07.02.2015, 22:40
AW: Few Questions - by Nero_3D - 07.02.2015, 23:06
Re : Few Questions - by Alvin007 - 07.02.2015, 23:13
Re: Few Questions - by PowerPC603 - 07.02.2015, 23:30
Re : Few Questions - by Alvin007 - 07.02.2015, 23:56

Forum Jump:


Users browsing this thread: 1 Guest(s)