EmbLogic's Blog

master array done..working on assignment-1

Posted in Data Structures with C | Leave a comment

comlement of 1′s

why 1′s complement of 1 = -2, not -1 ?

Posted in Data Structures with C | 1 Comment

problem in assingment 01

  1. int main(void)
  2. {
  3.    int  x=100;
  4.     printf(“dec=%d; octal=%o; hex=%x\n”,x,x,x);
  5.   printf(“dec=%d;octal=%#o;hex=%x\n”,x,x,x);
  6.   return 0;
  7. }

why we add # into the formate specifier ……………….why compiler printing the same value 100  after using the same format specifier %d in all case………..

Posted in Uncategorized | 1 Comment

Today’s work Status To Pravjot Sir

I have implemented :-

  1.  write_operation for single quantum(working on multiple quantums).
  2. Implemented Threads
Posted in Character Driver, Linux Internals and System Programming | Leave a comment

problem in assingment 01

  1. int main()
  2. {
  3.     int x,y,z;
  4.     x=y=z=1;
  5.      ++x||++y&&++z;
  6.      printf(“%d\t%d\t%d\n”,x,y,z);
  7.      return 0;
  8. }
Posted in Uncategorized | 5 Comments

problem in assingment 01

  1. int main()
  2. {
  3.    int x,y,z;
  4.    x=03;y=02;z=01;
  5.    printf(“%d\n”,x|y&z);
  6.   printf(“%d\n”,x|y&~z);
  7.   printf(“%d\n”,x^y&z);
  8.   printf(“%d\n”,x&y&&z);
  9.   x=1;y=-1;
  10.  printf(“%d\n”,!x|x);
  11.   printf(“%d\n”,~x|x);
  12.  printf(“%d\n”,x^x);
  13.  x<<=3; printf(“%d\n”,x);
  14. y<<=3;printf(“%d\n”,y);
  15. y>>=3;printf(“%d\n”,y);
  16. return o;
  17. }

i m facing problem in this program from starting…………how the negiate operator work…………also in left & right shift operator…………

Posted in Uncategorized | 2 Comments

LINUX

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 with that……:(

Posted in Uncategorized | 1 Comment

problem in assingment 01

  1. int main()
  2. {
  3.       int x,y,z;
  4.       x=2;y=1;z=0;
  5.       x=x&&y||z; printf(“%dn”,x);
  6.       printf(“%dn”,x||!y&&z);
  7.       x=y=1;
  8.       z=x++-1;printf(“%dn”,x);printf(“%dn”,z);
  9.       z+=-x+++++y;printf(“%dn”,x);printf(“%dn”,z);
  10.       return 0;
  11. }

i m facing problem in line 8th & 9th.line 9th shows an error l value required an increment operend……….

Posted in Uncategorized | 1 Comment

issue in project……..

i m facing problem to create the master array .it shows segmentation fault ………plz help me………

Posted in Uncategorized | 1 Comment

assinment1..problem in Q-15

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’..

Posted in Uncategorized | 3 Comments

Problem in assignment 1

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?

Posted in Uncategorized | 2 Comments

Assignment 1

Completed 18 question of assignment no. 1.

Posted in Uncategorized | Leave a comment

Project work

Created master array and solved 18 question of assignment1.

Posted in Uncategorized | Leave a comment

i have read the documents related to the introducion to c

Posted in Uncategorized | Leave a comment

int main()

{

int value=100;

printf(“value in decimal is:%d\n”,value);

printf(“value in hexa is:%x\n”,value);

printf(“value in octal is:%o\n”,value);

return 0;

}

in this program i m getting the following error

undefined reference to print

ld returned 1 exit status

how can i remove dis error?

 

 

 

 

 

Posted in Data Structures with C | 4 Comments