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

What does & mean in scanf?

1046


Why do we need arrays in c?

1087


What is the use of static variable in c?

1046


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2628


What does 1f stand for?

1091


Why array is used in c?

975


Explain what are header files and explain what are its uses in c programming?

1113


What are the types of bitwise operator?

1050


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1122


What is the difference between procedural and functional programming?

1011


Which function in C can be used to append a string to another string?

1181


Write a program to swap two numbers without using a temporary variable?

1074


What is volatile variable how do you declare it?

1029


How can you restore a redirected standard stream?

1060


Which type of language is c?

1025