Javatpoint Logo
Javatpoint Logo

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

Note: We have executed this program on TurboC.

Next TopicC Programs


Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA