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
What are the general description for loop statement and available loop types in c?
What is sizeof int in c?
What is line in c preprocessor?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
what is a constant pointer in C
What is the method to save data in stack data structure type?
What is the 'named constructor idiom'?
Write a program to reverse a given number in c?
How can you draw circles in C?
Can you assign a different address to an array tag?
What is a structure and why it is used?
What are the 4 types of organizational structures?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
main() { printf("hello"); fork(); }
Do pointers take up memory?