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
Which is the memory area not included in C program? give the reason
What is formal argument?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
simple program of graphics and their output display
Explain goto?
Can i use “int” data type to store the value 32768? Why?
How do you search data in a data file using random access method?
Can stdout be forced to print somewhere other than the screen?
What is NULL pointer?
Write a program to print factorial of given number using recursion?
What is a lvalue
Who developed c language and when?
What is wild pointer in c with example?
Can the sizeof operator be used to tell the size of an array passed to a function?
how we can make 3d venturing graphics on outer interface