What will be the output of the program? #include<stdio.h> int get(; int main() { const int x = get(; printf("%d", x); return 0; } int get() { return 20; } code example
Example 1: #include int main() { int x=(20||40)&&(10); printf("%d",x); return 0; }
#include <stdio.h>
int main()
{
int x=(20||40)&&(10);
printf("%d",x);
return 0;
}
Example 2: #include int main() { int x=(20||40)&&(10); printf("%d",x); return 0; }
#include <stdio.h> int main() { int x=(20||40)&&(10); printf("%d",x); return 0; }