Which statement is correct about the below program? #include<stdio.h> int main() { int i = 8, j = 24; if(i = 8) && if(j = 24) printf("Welcome Programmer"); return 0; }
Answers
Answered by
0
Answer:
There are two "if" statements For both var i and j. There should also be parentheses after if loop.
Explanation:
The original program :
#include<stdio.h>
int main(){
int i = 8, j = 24;
if(i = 8) && if(j = 24) printf("Welcome Programmer") ;
return 0;
}
The edited program:
#include<stdio.h>
int main(){
int i = 8, j = 24;
if(i = 8 && j = 24){
printf("Welcome Programmer") ;
}
return 0;
}
Similar questions