Saturday, 9 June 2018

Conditional Operator

Question:
1. .           Give an example of conditional expression

2. Output the code

   int m = -10, n = 20;
 n = (m < 0) ? 0 : 1;
printf("%d %d", m, n);

No comments:

Post a Comment

ch-12 File Handling

Mcq 1. What does fp point to in the program?   #include<stdio.h> int main() {   FILE *fp;   fp=fopen("trial",...