How to find the aerry size

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can anyone send me NIC question papers alongwith answers on nidhi1485@yahoo.co.in? Urgently needed.. Thanks in advance

1836


the systematic access of small computers in a distributed data processing system is referred as?

2720


in teradata level primary in table level allows duplicates why?

1643


Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,

1861


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

1904






SAS question: I have 50 fils a1,a2,...,a50. the primary key is upc. then if i want to merge all 50 files, the code is as follows, data test; merge a1 ... a50; by upc; run; we know that writing all 50 files name is time consuming, is there any standard format of this code?

1511


Wrtite a JCL for sorting a file with start from 36 postion lenth 9 excluding a num eq to 98768. for 3 marks mainframe

1463


how to study PHP my own? i reffered many sites.. but as being a fresher i couldnt follow those... which site will be the best one?

1845


what are all the ant command options

1507


What are the Short cut Keys of Tally ERP?

1769


we create a pf with 3 fields.2 is defined as keyfields.we lock it with alcobj command.how we find out whether the file is locked or not?is it dspfd??/

1619


How will you prove that java swing is multithreaded?

1694


what is the extension of SPDS Dynamic cluster tables?

1622


What is SOLID Principle in Programming Language?

656


How to call a C++ function which is compiled with C++ compiler in C code?

789