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 |
Write a program to generate random numbers in c?
What are loops c?
write a program to swap two numbers without using temporary variable?
ABCDCBA ABC CBA AB BA A A
How can you tell whether two strings are the same?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL
int i=10; printf("%d %d %d", i, i=20, i);
WHOT IS CHAR?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value
What is the purpose of the statement: strcat (S2, S1)?
Can we change the value of constant variable in c?