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


the output will be

#include<stdio.h>
int main ()
{
int i;
i = 9/2;
printf("%i",i);
return 0;
}

Answers were Sorted based on User's Feedback



the output will be #include<stdio.h> int main () { int i; i = 9/2; printf("%i&quo..

Answer / manomit mitra

4

Is This Answer Correct ?    48 Yes 8 No

the output will be #include<stdio.h> int main () { int i; i = 9/2; printf("%i&quo..

Answer / sumesh

the output of this program will be 4.here i is an integer type not float.

Is This Answer Correct ?    17 Yes 3 No

the output will be #include<stdio.h> int main () { int i; i = 9/2; printf("%i&quo..

Answer / jac

The output will be 4. The division is being stored in a variable of type int - division operations upon it will comport to the rules of integer division, which says, "Divide but drop the remainder". Moreover, the formatting flag "%i" prints an integer value all the time, even if you try and pass it a floating-point type (which will probably give you garbage - without a cast, that is).

http://www.cs.cf.ac.uk/Dave/C/node4.html - search "integer division"
http://linux.die.net/man/3/printf - look for the "i" formatting string

Is This Answer Correct ?    11 Yes 1 No

the output will be #include<stdio.h> int main () { int i; i = 9/2; printf("%i&quo..

Answer / nupur

it will return 0

Is This Answer Correct ?    23 Yes 27 No

Post New Answer

More C Interview Questions

What is the 'named constructor idiom'?

0 Answers  


What are preprocessor directives in c?

0 Answers  


write a progam to display the factors of a given number and disply how many prime numbers are there?

2 Answers  


what is the difference between call by value and call by reference?

5 Answers   Genpact, Global Logic, Infosys,


What is Conio.h ?

2 Answers   TCS,


What is an array in c?

0 Answers  


Write a c program to read a positive number and display it in words.? ex: 123=one two three help me....

2 Answers  


What is maximum size of array in c?

0 Answers  


write a c program to print a given number as odd or even without using loop statements,(no if ,while etc)

10 Answers  


what is the structure pointer?

0 Answers   Accenture, HCL,


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

0 Answers  


What is difference between structure and union?

0 Answers  


Categories