How to find the aerry size



How to find the aerry size..

Answer / vijith

#include <stdio.h>

int ArraySize(int array[])
{
int i = 0;
while(array[i] != NULL) i++;
return i;
}

int main(void)
{
int count;
int intarray[10];

for(count = 0;count<=10; ++count)
{
intarray[count] = count;
}


printf("\nintegers in intarray[10] == %d\n",
ArraySize(intarray) );

return 0;
}

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More Programming Languages AllOther Interview Questions

why we need to take u?

0 Answers  


Is CTS company do serious backgroung check?

0 Answers   CTS,


Difference of Console, web & windows applications?

0 Answers  


what are all the ant command options

0 Answers  


what is an INI file?

0 Answers   EID Parry,






What is the difference b/w Object base and object oriented programming?

1 Answers  


How same session variable can be used in both Asp and Asp.net?

1 Answers   Wipro,


what is the difference between uservariables and systemvariables (in Environmental variables)???

0 Answers  


Wats the name of the first os

2 Answers  


Write code to read the records from a file and load any array of size 99?make sure that you take care of all the error conditions?

0 Answers  


THE CHANNEL IN DATA COMMUNICATION CAN BE?

0 Answers   TCS,


what is the use MDM(Master Data Management)and meaning

0 Answers  


Categories