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 the following program?
main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}

Answer Posted / praveen

0 0 1 3 1


correct me if im wrong

Is This Answer Correct ?    22 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What the different types of arrays in c?

1065


What does c mean before a date?

1176


What are the storage classes in C?

1159


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2369


What are void pointers in c?

995


Explain how are 16- and 32-bit numbers stored?

1267


Is it better to bitshift a value than to multiply by 2?

1092


write a progrmm in c language take user interface generate table using for loop?

2048


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1697


Explain that why C is procedural?

1143


What is pointer in c?

1192


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

1090


Should I learn data structures in c or python?

1024


When a c file is executed there are many files that are automatically opened what are they files?

1107


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

2100