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);
}
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
0 0 1 3 1
as for as i know this is the output........
thank u
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / valli
0 0 1 3 1
m=-1&&-1&&0||2;//i.e,m=1;and i,j,m,l are incrimented
| Is This Answer Correct ? | 3 Yes | 0 No |
1,1,5,17,61,217,?,?.
Reverse the part of the number which is present from position i to j. Print the new number. eg: num=789876 i=2 j=5 778986
How can I run c program?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
Write a program in c to replace any vowel in a string with z?
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } Find the output
how to capitalise first letter of each word in a given string?
What is structure padding & expalain wid example what is bit wise structure?
What do you mean by command line argument?
How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)
Describe static function with its usage?
I came across some code that puts a (void) cast before each call to printf. Why?