i have completed my MDC project succesfully by using pointer & function.i have done master array,find code length,compression ,enccryption key& decompression for code length 4………
I have completed master array program.and calculation of ndc and bcl.
q-WAP to find the no of times that a given word(i.e a short string) occurs in a string (i.e a long string!)………..how we can start this programe…………
q15-WAP that reads integers until 0 is entered.after i/p terminates,the program should report the total no of even integers (excluding the 0) entered,the avg value of even integers………………………..how we read the i/p until 0…plz comment.
q.16-using if else statements,WAP that reads up to #,replaces each period with an exclamation mark,replaces each exclamation mark intially present with two EM,&reports at the end the no of substitution it has made………………plz comment
q.26-find out what your system does with integer overflow,floating point overflow,& floating point underflow by using the experimental approach,that is write programs having these problems………………plz comment
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
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………