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
Why can't I perform arithmetic on a void* pointer?
What is c language in simple words?
Write a program to show the change in position of a cursor using c
What is the acronym for ansi?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
When the macros gets expanded?
What is the meaning of 2d in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
Should I learn data structures in c or python?
What's a good way to check for "close enough" floating-point equality?
What is a pointer on a pointer in c programming language?
Explain the advantages of using macro in c language?
What is the translation phases used in c language?
How many bytes is a struct in c?
Why is python slower than c?