Option B: it is syntatically wrong.
Option D: syntatically wrong, it should be return(a>b ? a:b);
Option C: it uses nested conditional operator, this is logic for finding greatest number out of three numbers.
1. | Relational |
2. | Arithmetic |
3. | Logical |
4. | Assignment |
How Do I Remember ? BODMAS !
char *p; p = (char*) malloc(100);
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.