can anyone give one example each for various addressing modes with respect to C language.....
for example what addressing mode is used in the following statement?
a=200+300;
can anyone give one example each for various addressing modes with respect to C language.....
for example what addressing mode is used in the following statement?
a=200+300;
The addressing modes used is going to depend on your processor and compiler. Not to mention that the example you posted might be compiled to several instructions.
For starters there's no need to know about addressing modes when programming in C.
Only assembly language programmers are concerned with them - so why bother?
Most likely the immediate mode, but the assembler is king, as it may optimize it differently.
Generate the assembly and have a look (for your compiler / architecture).