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...

1)what is the error in the following stmt where str is a
char array and the stmt is supposed to traverse through the
whole character string str?

for(i=0;str[i];i++)

a)There is no error.
b)There shud be no ; after the stmt.
c)The cond shud be str[i]!='\0'
d)The cond shud be str[i]!=NULL
e)i shud be initialized to 1

Answer Posted / niranjan kumar niraj

b)The cond shud be str[i]!='\0'

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is function definition in c?

1118


How can type-insensitive macros be created?

1219


What is actual argument?

1102


What is the difference between #include

and #include “header file”?

1091


What is the difference between printf and scanf )?

1150


What is void main () in c?

1250


What is data structure in c and its types?

1114


Why do we use return in c?

1049


What is the difference between call by value and call by reference in c?

1212


Differentiate between null and void pointers.

1231


What is main () in c?

1118


What are near, far and huge pointers?

1116


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

2044


Explain what is dynamic data structure?

1223


Explain the difference between exit() and _exit() function?

1213