EmbLogic's Blog

issue in conversion specifier

%#d  %#o   %#x

what this # keyword do in this conversion

Posted in Uncategorized | 3 Comments

Shuts down

Sir,  computer shuts down so frequently

and showing instat error  … ..

should i format ??

 

Posted in Uncategorized | 1 Comment

ASSIGNMENT 1 COMPLETED

Can any one please tell me where to submit the assignment and in which format???

Posted in Uncategorized | 2 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

To SIDHARTH SIR

char (* ( *f())[])();

How to evaluate that kind of expression??

Posted in Data Structures with C | 1 Comment

Facing issues in executing makefile…using make command

i have created three source files and thee header files…

the  name and containt of these file area as follows…

main.c      one include file and one printf statment

one.c       one include file and one printf statments

two.c       one include file and one printf statement

header1.h     only printf statement

header2.h      only printf statment

header3.h      only printf statments

 

i got error while executing it and no object code provided.

Posted in Project Management Tools | Leave a comment

issue in cat and wc command in linux

what is the function of cat and wc command in linux ???? how can we  return from wc and cat command

Posted in Uncategorized | Leave a comment

problem in insertion sort….. what is the problem??

#include

int insertion_sort(int *a,int elem)
{
int temp=0,temp2=0,max=0,i=0,j=0;
for(i=0;i<elem-1;i++)
{
temp=*(a+i+1);
for(j=i;temp0;j–) *(a+j+1)=*(a+j);
*(a+j)=temp;
}
printf(“sorting done…”);
return 0;
}

int main()
{
int a[]={10,9,8,7,6,5,4,3,2,1},i=0;
insertion_sort(a,10);
for(i=0;i<=10;i++) printf("%d\n",*(a+i));
return 0;
}

Posted in Data Structures with C | 1 Comment

issue in deleting a directory in linux system

how to delete an empty  directory in linux system.. provided rmdir <dir> is not working.. error message
” directory not empty” is displayed.

 

Posted in Uncategorized | 2 Comments

Problem in devlopment tool topic

What is meant by intermediate targets ? and how these are created before final target.

What are list of prerequisties?

Posted in Uncategorized | Leave a comment

facing associativity issue in last two statments of the followin programme…pls explain it

{
int x=1,y=1,z=1;
x+=y+=z;
printf(“%d\n”,x<y?y:x);
printf(“%d\n”,x<y?x++:y++);
printf(“%d\n”,x);printf(“%d\n”,y);
printf(“%d\n”,z+=x<y?x++:y++);
printf(“%d\n”,y);printf(“%d\n”,z);
x=3,y=z=4;
printf(“%d\n”,z>=y>=x?1:0);
printf(“%d\n”,z>=y&&y>=x)

Posted in Data Structures with C | 2 Comments

issue in assingment 01

  1. 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
Posted in Uncategorized | 2 Comments

SESSION 1

I have attended my first session on introduction to embedded system ……….

Posted in Uncategorized | Leave a comment

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