CPP MCQ
Which of the following keywords is used to write assembly code in a C ++ program?
A)
ASM
B)
asm
C)
Compiler specific
D)
Not possible

Correct Answer : Option (B) :   asm

Explanation :

In the C ++ programming language, one can use the "asm" keyword to write assembly code as an inline function. To understand this in more detail, please consider the following example:
 
Sample demo of "asm" keyword use:
#include<bits/stdc++.h>  
usingnamespacestd;  
intmain()  
{  
  // generates interrupt 5  
  asmint5;    
    
  return0;  
}