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
What is function definition in c?
How can type-insensitive macros be created?
What is actual argument?
What is the difference between #include
What is the difference between printf and scanf )?
What is void main () in c?
What is data structure in c and its types?
Why do we use return in c?
What is the difference between call by value and call by reference in c?
Differentiate between null and void pointers.
What is main () in c?
What are near, far and huge pointers?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
Explain what is dynamic data structure?
Explain the difference between exit() and _exit() function?