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
What the different types of arrays in c?
What does c mean before a date?
What are the storage classes in C?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What are void pointers in c?
Explain how are 16- and 32-bit numbers stored?
Is it better to bitshift a value than to multiply by 2?
write a progrmm in c language take user interface generate table using for loop?
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
Explain that why C is procedural?
What is pointer in c?
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 ].
Should I learn data structures in c or python?
When a c file is executed there are many files that are automatically opened what are they files?
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)