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 of
printf("%d",(scanf("%d",10));

Answer Posted / umesh

#include<stdio.h>
int main ()
{
int c;
printf("%d",(scanf("%d",&c)));
return 0;
}

in this case return 1 instead of entering any value as input.


printf("%d",(scanf("%d",10)));
in this case simply generates a run time error. bcoz Since scanf always expects a variable( address) to store the value.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between Structures and Arrays?

1199


What is the difference between a string and an array?

1196


What is the difference between new and malloc functions?

1116


What is 1f in c?

2640


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

1116


What is a static function in c?

1159


In C language, a variable name cannot contain?

1268


What is size of union in c?

1014


What are header files why are they important?

1084


What do you understand by normalization of pointers?

1054


How can you determine the maximum value that a numeric variable can hold?

1226


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

3960


Write a program to print fibonacci series using recursion?

1056


What are derived data types in c?

1076


What are lookup tables in c?

996