answersLogoWhite

0

When the compiler says "code has no effect", it is saying that it does not matter if the code is executed or not - the end result will be the same. The compiler, if in optimizing mode, can and should delete the code. An example of code that has no effect is a = a;

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions

What is function in c language?

A function is a self contained block of code that perform of particular task.


How can we write a code after main closed in c language?

Register the function(s) containing the code with atexit.


Explain you how you can impliment programme in c language without main function?

You can't. If you have no main function, then there is no entry point to your code and it cannot be executed. Code without a main function is essentially a library. In MS Windows, GUI mode, you don't have to have main function. (WinMain is used instead).


What is the function of the operating system in a computer?

In a computer OS translates mecheane language like bainary code (0010)etc into human language like english so that we can understand it.


Why you call sizeof is a operator not a function in c language?

If sizeof were a function, the following code would work (you can try with any other function):printf ("Function sizeof is located at %p", sizeof);On the other hand, the following code wouldn't work, as functions don't accept a type as parameter:size_t intsize= sizeof (int);


Which programming language is always a one to one correspondence for a line of code in that language and a line of code in machine language?

Assembly language is the programming language that always has a one to one correspondence for a line of code in that language and a line of code in machine language


How can learn javascript as beginner?

Try and code simple things like alert statements, function calling on click event of form submit, function declaration and variable assignment. Bottom line is code and then only you will learn any programming language.


What is the language code for the keyword "no"?

The language code for the keyword "no" is "Norwegian."


What is the meaning of dot net?

.net is technology in which we can design application as we wish and can write code in c# or vb anyone language


What is the purpose of function in PHP program?

The function keyword in PHP allows users to define functions beyond those built into the language, like so: function isFour ($number) { return $number == 4; }Functions in any language, including PHP, allow the developer to re-use their code. Without functions all of the code required to do the simplest of tasks must be re-written constantly; but with functions you must only write the code once and then call it whenever needed.


What are translator in c language?

The assembler is translator which converts assembly language code into machine language code.


What is a function in C programming language?

A function is a subroutine that can be called from several places (re-usable code). Functions can accept arguments (or parameters) so that they can be more generalised and can also return a value to the caller.