EmbLogic's Blog

Category Archives: Uncategorized

BIT_FIELDS

#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 →

Posted in Uncategorized | 1 Comment

how the parenthesis is used

#define CELCS(far) ((1.8*far)+32.0) here what is doing the parenthesise() in define statement. please explain.

Posted in Uncategorized | Leave a comment

Is there any way to undo the updation of the profile plz help me….:(

Posted in Uncategorized | Leave a comment

size command

#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 →

Posted in Uncategorized | Leave a comment

assignment 01

completed 12 ques of assign 01

Posted in Uncategorized | Leave a comment

CVS…..

#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 →

Posted in Uncategorized | Leave a comment

hi i have created the master array by reading from a text file…

Posted in Uncategorized | Leave a comment

problem in assingment 01

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 →

Posted in Uncategorized | 1 Comment

problem in assingment 01

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; }

Posted in Uncategorized | 5 Comments

problem in assingment 01

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 →

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 … Continue reading →

Posted in Uncategorized | 1 Comment

problem in assingment 01

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 →

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