Computer Science, asked by meghanakalivarapu, 8 months ago

What happens if you try to compile and run this program?
#include <stdio.h>
int main(void) {
int i = 3, j = i - 2 * i;
switch (
ij) {
case 1: i++;
da se
2: j --;
case 0: j+-; break;
default: j = 0;
S
printf ("%d", ++i);
return 0;​

Answers

Answered by KingzSlayer
1

Answer:the program output4

Explanation:

What happens if you try to compile and run this program?

#include <stdio.h>

int main(void) {

int x = 1, y = 1;

float k = -1e0, m = 2e1;

printf("%d\n", (x >= y) + (x >= y) + (k >= y) + (m >= k) + ('q' <= 'z'));

return 0;

}

the program outputs 4

the program outputs 1

the program outputs 3

the program outputs 2

HOPE THAT WAS helpful

Similar questions