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 |
What has to put when we are inserting as assembly language code into the C code? or When we are inserting as assembly language code into the C code we have to insert one thing at the start and of the assembly language. What are they?
what is the structure?
What is volatile variable in c?
program to convert a integer to string in c language'
What is indirection in c?
int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?
Write a program which take a integer from user and tell whether the given variable is squar of some number or not. eg: is this number is 1,4,9,16... or not
What is #ifdef ? What is its application?
write a program for size of a data type without using sizeof() operator?
22 Answers HCL, IBM,
how to write palindrome program?
What language is lisp written in?
write a program to insert an element at the specified position in the given array in c language