%#d %#o %#x
what this # keyword do in this conversion
%#d %#o %#x
what this # keyword do in this conversion
Sir, computer shuts down so frequently
and showing instat error … ..
should i format ??
Can any one please tell me where to submit the assignment and in which format???
#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??????????????????
#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.
char (* ( *f())[])();
How to evaluate that kind of expression??
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.
what is the function of cat and wc command in linux ???? how can we return from wc and cat command
#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;
}
how to delete an empty directory in linux system.. provided rmdir <dir> is not working.. error message
” directory not empty” is displayed.
What is meant by intermediate targets ? and how these are created before final target.
What are list of prerequisties?
{
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)
I have attended my first session on introduction to embedded system ……….
i dont know how to find out the bit pattern of a negative number??????????is there any method then please post