#include #include #include union { int index; struct { unsigned int x : 1; unsigned int y : 1; unsigned int z : 2; } bits; } number; int main() { for (number.index = 0; number.index < 20; number.index++) { … Continue reading
#define CELCS(far) ((1.8*far)+32.0) here what is doing the parenthesise() in define statement. please explain.
Is there any way to undo the updation of the profile plz help me….:(
#include<stdio.h> // filename hello.c int main() { printf(“hello i m ASHWANI\n”); } ]# size hello text data bss dec hex filename 1149 492 16 1657 679 hello what does it mean? plz … Continue reading
#include<stdio.h> #include<string.h> static char *RCSinfo = “$id$”; vprintf(“RSC control: %s\n”,RCSinfo); int main() { printf(“hello”); return 0; } errors: MACROS.c:5:9: error: expected declaration specifiers or ‘…’ before string constant MACROS.c:5:29: error: expected declaration specifiers or ‘…’ before ‘RCSinfo’ make: *** [MACROS] … Continue reading
int main(void) { int x=100; printf(“dec=%d; octal=%o; hex=%x\n”,x,x,x); printf(“dec=%d;octal=%#o;hex=%x\n”,x,x,x); return 0; } why we add # into the formate specifier ……………….why compiler printing the same value 100 after using the same format specifier %d in all … Continue reading
int main() { int x,y,z; x=y=z=1; ++x||++y&&++z; printf(“%d\t%d\t%d\n”,x,y,z); return 0; }
int main() { int x,y,z; x=03;y=02;z=01; printf(“%d\n”,x|y&z); printf(“%d\n”,x|y&~z); printf(“%d\n”,x^y&z); printf(“%d\n”,x&y&&z); x=1;y=-1; printf(“%d\n”,!x|x); printf(“%d\n”,~x|x); printf(“%d\n”,x^x); x<<=3; printf(“%d\n”,x); y<<=3;printf(“%d\n”,y); y>>=3;printf(“%d\n”,y); return o; } i m facing problem in this program from starting…………how the negiate … Continue reading
on my lappi i have linux as well as windows 7 installed..weneva i am try to get into linux it is not working properly….it is going till the desktop but it shows nothing on the desktop..so cn anyone help me … Continue reading
int main() { int x,y,z; x=2;y=1;z=0; x=x&&y||z; printf(“%dn”,x); printf(“%dn”,x||!y&&z); x=y=1; z=x++-1;printf(“%dn”,x);printf(“%dn”,z); z+=-x+++++y;printf(“%dn”,x);printf(“%dn”,z); return 0; } i m facing problem in line 8th & 9th.line 9th shows an error l value required an … Continue reading
i m facing problem to create the master array .it shows segmentation fault ………plz help me………
Q:15 Statement given: b=2.0e20+1.0; a=b-2.0e20; what is ’2.0e20′,?anybody executed it explain the result of ‘a’..
Q:-int main() { int x=2,y,z; x*=y=z=4; printf(“%d”,x); x=y==z; printf(“%d”,x); x==(y=z) printf(“%d”,x) here what is the value of x in last printf statement?