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 / vinod

Options D,E are correct for this

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have seen function declarations that look like this

1030


What is a pointer variable in c language?

1087


What is the use of volatile?

1072


What is a nested formula?

1120


Write a program to reverse a linked list in c.

1106


Can a pointer be volatile in c?

970


What is the benefit of using an enum rather than a #define constant?

1218


what are non standard function in c

1899


Did c have any year 2000 problems?

1096


Explain how do you sort filenames in a directory?

1026


What is a built-in function in C?

1576


What is the g value paradox?

1153


Differentiate fundamental data types and derived data types in C.

1021


What does a function declared as pascal do differently?

1110


Explain what is a pragma?

1031