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


main()
{
int i=0;
while(+(+i--)!=0)
i-=i++;
printf(i);
}

Answers were Sorted based on User's Feedback



main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }..

Answer / cholan

-1

Is This Answer Correct ?    5 Yes 1 No

main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }..

Answer / vignesh1988i

the answer will be -1

Is This Answer Correct ?    2 Yes 0 No

main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }..

Answer / vinod

Error.... Cannot convert int to char error at printf(i). If they replaced printf(i) to printf("%d",i) then it would be -1.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

what will be the output of this program main() { int i=1; while (i<=10); { i++; } }

11 Answers  


What is diffrance between declaration and defination of a variable or function

4 Answers  


Mention four important string handling functions in c languages .

0 Answers  


a character variable can at a time store a) 1 character b) 8 characters c) 254 characters d) none of the above

3 Answers  


using only #include <stdio.h> and #include <stdlib.h> Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

0 Answers  


Can you mix old-style and new-style function syntax?

0 Answers  


How was c created?

0 Answers  


What is a built-in function in C?

1 Answers  


what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?

1 Answers  


What is a #include preprocessor?

0 Answers  


write a program to read a number and print in words that is in sentence for example 21,219 then output is "twenty one thousand and two hundred nineteen" by using only control flow statements (only loops and switch case )?

1 Answers   TCS,


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

0 Answers  


Categories