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 string length wihtout using c function?

Answer Posted / ivr

char *a="india";
for(i=0;a[i]!='\0';i++);
printf("the length is :%d",i);

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

1155


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1317


What are structure members?

1054


Can we declare variable anywhere in c?

937


Explain what is the difference between a string and an array?

1124


Is fortran still used in 2018?

1006


Explain how do you list a file’s date and time?

1011


Explain what is the difference between functions getch() and getche()?

1005


What is the difference between malloc calloc and realloc in c?

1094


How to set file pointer to beginning c?

1170


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2167


What is pointers in c?

1081


Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

1239


simple program of graphics and their output display

1962


Is array a primitive data type in c?

1018