1,591 views

3 Answers

Best answer
6 votes
6 votes
type will take int value .Since #undef type ; #define type float ; done after the function complete that y answer is 1.00 otherwise it will be 1.21.
selected by
0 votes
0 votes
float a=1.1// a is a floating type variable

foo(int b)=1//take value of a as a argument

so b*b=1*1=1// b is a integer type variable

return 1;

a=1 print as o/p.
0 votes
0 votes
b will take value 1 as  a argument because it is integer type

so b=1*1=1

a=1

printf(" %1.2 f",a)=1.00

so o/p will be 1.00
Answer:

Related questions

3 votes
3 votes
4 answers
1
Arjun asked Oct 18, 2016
775 views
What will be the output of the following code?#include <stdio.h int main() { char a = 'A', z = 'Z'; printf("%d", z-a); }
2 votes
2 votes
5 answers
2
Arjun asked Oct 18, 2016
1,574 views
The value returned by the following code is _____int foo() { int a[] = { 10, 20, 30, 40, 50, 60 }; int *p = &a , *q = &a[5] ; return q-p; }
12 votes
12 votes
1 answer
3
3 votes
3 votes
2 answers
4