- 1

What is the value of r after this code is executed?Amswer with explanation

#include<stdio.h> void main() { int (r=3||k>6 && r<5||k>10) printf("r=9"); else printf("r=6") }

11th Dec 2020, 9:35 AM
Mahisharthi.V
Mahisharthi.V - avatar
2 Answers
+ 2
Only you know what you have written. First of all, the return type of `main` function should be `int` not `void`. And what even is the 4th line of your code? I suggest you first advance in your C course and then ask https://www.sololearn.com/Course/C/?ref=app
11th Dec 2020, 9:59 AM
XXX
XXX - avatar