Javatpoint Logo

91-9990449935

 0120-4256464

Assembly program in C

We can write assembly program code inside c language program. In such case, all the assembly code must be placed inside asm{} block.

Let's see a simple assembly program code to add two numbers in c program.

Output:

c= 30
Next TopicC Programs