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);
}
Post New Answer View All Answers
Explain why c is faster than c++?
what is ur strangth & weekness
Can you please explain the difference between exit() and _exit() function?
What is the difference between text and binary i/o?
Why c is called a mid level programming language?
What is stack in c?
Difference between constant pointer and pointer to a constant.
How to create struct variables?
given post order,in order construct the corresponding binary tree
Is file a keyword in c?
Explain what math functions are available for integers? For floating point?
What are the different file extensions involved when programming in C?
If I have a char * variable pointing to the name of a function ..
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.