Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

we can use parameters in cl and rpg pgms...etc.in particular i think when we use data area or datastructure or data queue .i think this means which one====in my question...parameters cannot be passed in which one????hope understand my qstn???

0 Answers   CTS,


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

0 Answers  


What are the Short cut Keys of Tally ERP?

0 Answers  


what is the extension of SPDS Dynamic cluster tables?

0 Answers   IBM,


what is the use of occurs 10 or (any number) in the internal table declaration with header line.

0 Answers  


Write a program to reverse a number?

0 Answers   BirlaSoft,


Q1.Write a C program which asks the user for a number between 1 to 9 and shows the  number. If the user inputs a number out of the specified range, the program should  show an error and prompt the user for a valid input.

0 Answers  


differences between qtp10.0 and 11.0 ?

0 Answers  


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

0 Answers   Indian Overseas Bank,


how can i create report in abap to insert data in table pa0002 using insert command

0 Answers  


Info for guidewire documents and interview questions

1 Answers  


How many ways we can fill a dataset in .Net

1 Answers   iGate,


Categories