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 does & mean in scanf?
Why do we need arrays in c?
What is the use of static variable in c?
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?
What does 1f stand for?
Why array is used in c?
Explain what are header files and explain what are its uses in c programming?
What are the types of bitwise operator?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What is the difference between procedural and functional programming?
Which function in C can be used to append a string to another string?
Write a program to swap two numbers without using a temporary variable?
What is volatile variable how do you declare it?
How can you restore a redirected standard stream?
Which type of language is c?