main()
{
int y=10;
if(y++>9 && y++!=10 && y++>10)
{
printf("%d",y);
else
printf("%d",y);
}
}
Answer Posted / yash golwara
answer will be 13 but we need to first need to edit the code it has some errors
so could be this
#include<stdio.h>
#include<conio.h>
main()
{
int y=10;
if(y++>9 && y++!=10 && y++>10)
{
printf("%d",y);
}
else
printf("%d",y);
}
so now it will give answer 13 in each process it svalues increases and three process so it will increase to 13
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
hi i have selected for nda and could please send me the courses offered in nda regarding engineering and all other courses????
why there is a collision in switch
how we can improve mobile ad,hoc network.
Relate FDDI/ATM/SONET to the OSI model.
how do we calculate physical address if logical address is given in the question?
int main() { int d = 10; int m = 2; int y = 3603; int c = 0; int val; val = ( d + m + y + (y/4) + c) % 7; cout << val; return 0; }
What is meant by STL?
How does an aeroplane stay airborne and how can some aeroplanes fly upside down?
today apptitude questions
how will u test the idoc
what are differences between composition and inheritance in c
1) There is a circular pizza with negligible thickness that is cut into 'x' pieces by 4 straight line cuts. What is the maximum and minimum value of 'x' respectively 2)A ship leaves on a long voyage. When it is 18 miles from the shore, a seaplane, whose speed is 10 times that of the ship is sent to deliver mail. How far from the shore does the seaplane catch upon with the ship? 3) If the distance traveled (s) in time (t) by a particle is given by the formula s = 1+ 2t+3t2+4t3, then what is the distance traveled in the 4th second of its motion? 4)3 men finish painting a wall in 8 days. Four boys do the same job in 7 days. In how many days will 2 men and 2 boys working together paint two such walls of the same size?
Write a program in āCā that will accept 10 numbers from the user, sort them & then perform the binary search. The searching number will be arithmetic mean of the 10 numbers accepted from the user. Write the sort() & binSearch() functions for performing the sorting & binary search. Also create display function() for displaying the list. Sort() function will use selection sort and only receive one argument (Single char type)as type of sorting i.e. ascending (a) or descending (d). Display the list after sorting using a display() function. binSearch() function will accept one argument as a number to be search & return null or the index position of that number in the array. display() function is non argument non return type function. It will simply display the list row-wise. Program should use these functions by displaying the appropriate message for found or not found.
What is HPLC ? and define it.
Is there any difference between the concepts of encoding,decoding and encryption and decryption?