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

Differentiate between the = symbol and == symbol?

1302


simple program of graphics and their output display

2003


Why isn't any of this standardized in c? Any real program has to do some of these things.

1214


What is pass by reference in c?

1188


What are the differences between new and malloc in C?

1150


write a program fibonacci series and palindrome program in c

1047


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1070


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

1041


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1096


Explain the bubble sort algorithm.

1075


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

5475


How can I convert a number to a string?

1196


How does #define work?

1080


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

1040


What is pointer in c?

1202