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
I have seen function declarations that look like this
What is a pointer variable in c language?
What is the use of volatile?
What is a nested formula?
Write a program to reverse a linked list in c.
Can a pointer be volatile in c?
What is the benefit of using an enum rather than a #define constant?
what are non standard function in c
Did c have any year 2000 problems?
Explain how do you sort filenames in a directory?
What is a built-in function in C?
What is the g value paradox?
Differentiate fundamental data types and derived data types in C.
What does a function declared as pascal do differently?
Explain what is a pragma?