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 output?
main()
{
#define SQR(x) x++ * ++x
int i = 3;
printf("
%d %d
",SQR(i),i * SQR(i));
}
a)9 27
b)35 60
c)20 60
d)15 175

Answers were Sorted based on User's Feedback



what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d..

Answer / harichandana

b

Is This Answer Correct ?    5 Yes 3 No

what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d..

Answer / lalit

b) 35,60

Is This Answer Correct ?    3 Yes 1 No

what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d..

Answer / aspirant

c

Is This Answer Correct ?    0 Yes 0 No

what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d..

Answer / kundan

Can anyone please explain it ????

Is This Answer Correct ?    0 Yes 0 No

what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d..

Answer / anil patil

b) 35 60

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

Efficient data structure for store/search list of 1000 records a)array b)double linked list c)circular queue d)hash table

3 Answers   Value Labs,


State the difference between realloc and free.

0 Answers   Aricent,


What is the difference between GETS();AND SCANF();

4 Answers   TCS,


1. What will be the output of the following programs. a) #include <stdio.h> Main() { Int x=4; While(x==1) { X=x-1; Printf(“%d”,x); --x; } }

7 Answers   CSC,


Write a c code segment using a for loop that calculates and prints the sum of the even integers from 2 to 30, inclusive?

4 Answers  


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

0 Answers   Celstream,


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

0 Answers  


What is function and its example?

0 Answers  


Under what circumstances does a name clash occur?

0 Answers   InterGraph,


Write a program to swap two numbers without using third variable in c?

0 Answers  


1.What is a Data Structure? Explain its need? 2.What is a Directed Graph? Write an algorithm to find whether a Directed Graph is connected or not? 3.Explain the process of converting a Tree to a Binary Tree.

4 Answers   Ignou, TCS,


52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?

9 Answers  


Categories