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...


/*what is the output for the code*/
void main()
{
int r;
r=printf("naveen");
r=printf();
printf("%d",r);
getch();
}



/*what is the output for the code*/ void main() { int r; r=printf("naveen"); r=printf..

Answer / amegha

r=printf() sttmnt will produce an error as - too few
parameters in printf().
It needs any argument value.

r=printf("naveen") returns the no of characters printed.
here 6.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Interview Questions

Will Macros support multiple arguments ?

7 Answers   Oracle,


how can i make a program with this kind of output.. Enter a number: 5 0 01 012 0123 01234 012345 01234 0123 012 01 0

4 Answers   Wipro,


What tq means in chat?

0 Answers  


f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?

9 Answers   Hughes, Tech Mahindra,


What are the types of pointers in c?

0 Answers  


By using C language input a date into it and if it is right?

0 Answers   Aricent,


What's the difference between DELETE TABLE and TRUNCATE TABLE commands?

2 Answers   CTC,


what is inline function?

2 Answers  


# define x=1+4; main() { int x; printf("%d%d",x/2,x/4); }

5 Answers  


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

0 Answers  


What is pointer to pointer in c?

0 Answers  


what is c language.

3 Answers  


Categories