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

When should we use pointers in a c program?

1081


What are the loops in c?

943


What are conditional operators in C?

1048


Is array a primitive data type in c?

1001


What is the acronym for ansi?

998


Give me the code of in-order recursive and non-recursive.

1320


How do you determine whether to use a stream function or a low-level function?

1081


What is function in c with example?

1088


write a program to print data of 5 five students with structures?

2005


What is a pointer on a pointer in c programming language?

1092


write a program fibonacci series and palindrome program in c

978


Difference between pass by reference and pass by value?

1097


What is wild pointer in c with example?

1020


Is null valid for pointers to functions?

1108


what is the height of tree if leaf node is at level 3. please explain

2088