can we print any string without using terminator?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ashutosh
the format should b like this
void main()
{
if(printf("i luv u deepa")
{
}
}
Is This Answer Correct ? | 17 Yes | 3 No |
explain how do you use macro?
Difference Between embedded software and soft ware?
How can I allocate arrays or structures bigger than 64K?
Why is C language being considered a middle level language?
how many key words availabel in c a) 28 b) 31 c) 32
how do you programme Carrier Sense Multiple Access
#include <stdio.h> void main() { int i=-1,j=1,k,l; k=!i&&j; l=!i||j; printf ("%d%d",k,l) ; }
What is data types?
Explain how can you determine the size of an allocated portion of memory?
What are runtime error?
What is the difference between macros and inline functions?
What is the difference between File pointer and Internal Charecter Pointer?