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

int a=2,b=3,c=4;
printf("a=%d,b=%d\n",a,b,c);
what is the o/p?

Answer Posted / vignesh1988i

a=2 and b=3;;;; why it dosent print the value of 'c' is...
we didnt specify any format specifications....... so we wont
get c value...

but if we have given the format specifications and if we
dont give any argument to it... the garbage value will be
your o/p

printf("%d");
the o/p is :: some garbage values....

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is volatile c?

1004


How do you determine the length of a string value that was stored in a variable?

1108


How many bytes are occupied by near, far and huge pointers (dos)?

1143


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

979


What is the size of enum in c?

1103


show how link list can be used to repersent the following polynomial i) 5x+2

2276


What's the best way of making my program efficient?

1084


What is volatile variable in c with example?

1029


How can I find out the size of a file, prior to reading it in?

1157


What is assert and when would I use it?

982


What is getche() function?

1031


What is a keyword?

1156


Is main an identifier in c?

1130


What is LINKED LIST? How can you access the last element in a linked list?

1060


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3298