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

Explain how can a program be made to print the name of a source file where an error occurs?

1198


Hi can anyone tell what is a start up code?

2085


How to explain the final year project as a fresher please answer with sample project

977


What is character constants?

1188


What does typeof return in c?

1104


What is a macro?

1115


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3692


Can a variable be both static and volatile in c?

1045


When should structures be passed by values or by references?

1045


What is difference between static and global variable in c?

1061


Explain what does the format %10.2 mean when included in a printf statement?

1367


Are there any problems with performing mathematical operations on different variable types?

1041


What is the difference between procedural and declarative language?

1147


What Is The Difference Between Null And Void Pointer?

1262


What are the types of data files?

1206