What has to put when we are inserting as assembly language
code into the C code? or When we are inserting as assembly
language code into the C code we have to insert one thing
at the start and of the assembly language. What are they?

Answers were Sorted based on User's Feedback



What has to put when we are inserting as assembly language code into the C code? or When we are in..

Answer / vaishnavi

we can insert assembly code by using asm()
asm("assembly code")
The compiler will insert these asm code into the assembly code being generated, and hence the compiler-supplied and the user-supplied assembly will be combined

Is This Answer Correct ?    3 Yes 0 No

What has to put when we are inserting as assembly language code into the C code? or When we are in..

Answer / sivavendra

Yes,, we have to give the assembly code as inline function as follows.....

asm
{
"assembly instructions"
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what are the advantages of a macro over a function?

0 Answers   TCS,


typedef struct { int i:8; char c:9; float f:20; }st_temp; int getdata(st_temp *stptr) { stptr->i = 99; return stptr->i; } main() { st_temp local; int i; local.c = 'v'; local.i = 9; local.f = 23.65; printf(" %d %c %f",local.i,local.c,local.f); i = getdata(&local); printf("\n %d",i); getch(); } why there there is an error during compiling the above program?

1 Answers  


Describe the order of precedence with regards to operators in C.

0 Answers  


write a function for strtok()??

2 Answers   Verifone,


What are the 5 types of inheritance in c ++?

0 Answers  






What’s the special use of UNIONS?

0 Answers   ADP,


Here is a neat trick for checking whether two strings are equal

0 Answers  


Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines b.comments can start any where in the line c.a line can contain comments with out any language statements d.comments can occur within comments

6 Answers   TCS,


What is NULL pointer?

0 Answers   Infosys,


program in c to print 1 to 100 without using loop

9 Answers   Wipro,


what are the advantages & disadvantages of unions?

2 Answers  


How we can set and clear bit in a byte using macro function?

2 Answers   L&T, Samsung,


Categories