Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which is the memory area not included in C program? give the reason

1896


What is formal argument?

1091


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2044


simple program of graphics and their output display

1936


Explain goto?

1091


Can i use “int” data type to store the value 32768? Why?

1143


How do you search data in a data file using random access method?

1252


Can stdout be forced to print somewhere other than the screen?

1013


What is NULL pointer?

1036


Write a program to print factorial of given number using recursion?

959


What is a lvalue

1039


Who developed c language and when?

1005


What is wild pointer in c with example?

1017


Can the sizeof operator be used to tell the size of an array passed to a function?

1056


how we can make 3d venturing graphics on outer interface

4728