can we print any string without using terminator?
Answer Posted / yogesh bansal
Yes, We can print the string without using the terminator.
like this
#include <stdio.h>
int main()
{
if(printf("this is yogesh"))
{
printf("then you must be good boy");
}
return 0;
}
Its a working example. when the control comes to if()
statement. first it will execute the printf statement inside
if() and the printf function will return number of character
printed which is an integer value and if() is true for any
value greater than 0. so it will go inside and execute the
rest of the code.
Hope the explanation is clear to you.
| Is This Answer Correct ? | 30 Yes | 3 No |
Post New Answer View All Answers
Can a variable be both static and volatile in c?
Explain the use of 'auto' keyword
What is array in c with example?
What is class and object in c?
How can I sort a linked list?
Explain what is wrong with this program statement? Void = 10;
What are the different categories of functions in c?
How are structure passing and returning implemented?
Why we use break in c?
How can I sort more data than will fit in memory?
Is null a keyword in c?
What is static volatile in c?
what is uses of .net
What is mean by data types in c?
What is volatile c?