What is the role of && operator in a program code?



What is the role of && operator in a program code?..

Answer / Deepak Varshney

The 'logical AND' operator (&&) tests whether both expressions are true. It has higher precedence than the 'OR' operator (||). If both conditions are true, it returns true; otherwise, it returns false.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

When should the register modifier be used? Does it really help?

1 Answers  


what are the various memory handling mechanisms in C ?

4 Answers   HP,


What is a memory leak in structures? How can we rectify that?

2 Answers  


write a program to print the one dimensional array.

1 Answers  


What is a wrapper function in c?

1 Answers  


Can the size of an array be declared at runtime?

1 Answers  


Why is c called "mother" language?

1 Answers  


Write a progarm to find the length of string using switch case?

1 Answers   TCS,


int main(){ float f=8.0; if(f==8.0) printf("good"); else printf("bad"); } what is the answere and explain it?

3 Answers  


What is the meaning of && in c?

1 Answers  


Explain how can I manipulate strings of multibyte characters?

1 Answers  


What are the differences between new and malloc in C?

1 Answers   Amazon,


Categories