Category: Language
One thing was confusion for me but after watching this tut it is clear to me now….
code: #include<stdio.h> int main() { int year,x; printf(“Enter year:”); scanf(“%d”,&year); //((year%4==0&&year%100!=0)||(year%400==0))?:printf(“%d is not leap year.”,year); x=((year%4==0&&year%100!=0)||(year%400==0))?1:0; if(x==0)…
code: #include<stdio.h> int main() { int a=20,b=50,c=40,m; // if(a>b && a>c) // m=a; // else if(b>c) //…
code: #include<stdio.h> int main(){ if(!printf(“Hello”)){ printf(” world\n”); }else{ printf(” Hell!”); } return 0; }
code: #include<stdio.h> int main() { int a=-1,b=10,c; c=++a && ++b; printf(“a=%d, b=%d, c=%d\n”,a,b,c); return 0; } Expected…
#include<stdio.h> int main(){ int a=100,b=-70,i; i=!(a>b);// when we use !a it is zero as any non zero…
Recent Comments