EmbLogic's Blog

Author Archives: ashish.dahiya

issue in pre and post increment?????????????

int x=3,y; y=(++x*++x*++x)/++x; the value of y=21and x=7 why????????????????? int x=3,y; y=(x++*x++*x++)/x++; the value of y=9 and x=7 why?????????????????  

Posted in Uncategorized | 2 Comments

E10

use of file i/o (low level and high level),,,,,,,,,in compression project,,,,,,,,,,,,,,,

Posted in Uncategorized | Leave a comment

E10

compression is done sucessfully,,,,,,,,,,,,now working on decompression…………………..  

Posted in Uncategorized | Leave a comment

E10 Work Status

1d and 2d array passsing to a function using pointer and now working on sorting and searching,,,,,,,,,,,,,,,,,,,,,,,,,

Posted in Uncategorized | Leave a comment

E10

I have complete first stage of my project i.e master array. now moving on second stage.>>>>>>>>>>>>..

Posted in Uncategorized | Leave a comment

assignment 2nd

assignment 2nd complete except 5th,6th ques…………….

Posted in Uncategorized | Leave a comment

unexpected output???

#include<stdio.h> int main(void) { float a,b; b=2.0e20+1.0; a=b-2.0e20; printf(“%f\n”,a); return 0; } output is  :    4008175468544.000000 how this can be possible????????????????

Posted in Uncategorized | 3 Comments

issue in conversion specifier

%#d  %#o   %#x what this # keyword do in this conversion

Posted in Uncategorized | 3 Comments

issue in float division

#include<stdio.h> main(){ float f;   f=(float)100/3;   printf(“%f”,f); return 0;  } output is    :   33.333332                     why there is 2 instead of 3 in last??????????????????      

Posted in Uncategorized | Leave a comment

issue in expression solution

#include<stdio.h> main() { double d=3.2,x; int i=2,y; x=(y=d/i)*2; printf(“%g\t %g\n”,(double)x,(double)y); y=(x=d/i)*2; printf(“%g\t %g\n”,(double)x,(double)y); y=d*(x=2.5/d); printf(“%g\n”,(double)y); x=d*(y=((int)2.9+1.1/d)); printf(“%g\t %g\n”,(double)x,(double)y); return 0; } its output is: 2     1 1.6     3 2 6.4     2 ques ?  how x=(y=1)*2 is 2.

Posted in Uncategorized | 2 Comments

how to find out bit pattern of a negative number

i dont know how to find out the bit pattern of a negative number??????????is there any method then please post    

Posted in Uncategorized | Leave a comment