Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

main()

{

int i=4,j=7;

j = j || i++ && printf("YOU CAN");

printf("%d %d", i, j);

}

Answer Posted / susie

Answer :

4 1

Explanation:

The boolean expression needs to be evaluated only till the
truth value of the expression is not known. j is not equal
to zero itself means that the expression’s truth value is 1.
Because it is followed by || and true || (anything) => true
where (anything) will not be evaluated. So the remaining
expression is not evaluated and so the value of i remains
the same.

Similarly when && operator is involved in an expression,
when any of the operands become false, the whole
expression’s truth value becomes false and hence the
remaining expression will not be evaluated.

false && (anything) => false where (anything) will
not be evaluated.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Design an implement of the inputs functions for event mode

3508


write a program for area of circumference of shapes

2561


Cluster head selection in Wireless Sensor Network using C programming language.

3733


Write a routine to implement the polymarker function

4888


#include int main(void) { int a=4, b=2; a=b<>2 ; printf("%d",a); return 0; }

1622


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3637


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

4515


How can you relate the function with the structure? Explain with an appropriate example.

3434


How to palindrom string in c language?

11041


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2905


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2762


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2669


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2535


Develop a routine to reflect an object about an arbitrarily selected plane

3604


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

982