How can you declare global and local variable in pseudocode?
A local variable is a variable declared inside a construct, such as a class or function, while a global variable is a variable declared outside of any construct.
What is complier and its types in c?
C compiler is a set of program written in order to convert a user code into an executable code which is understood by a Computer.
static storage class in C tells that:
The variable will have the default value as zero.
The variable scope will be the file in which it is defined.
RaVi
How do you calculate address of any element of array using formulae?
element_address = array_address + (element_index * element_size)
Note that the array name refers to the start address of the array, element indices are always zero-based and element size is calculated at compile time using the sizeof() operator using the array type as the operand.
int x[10];
int* p1 = x + (5 * sizeof(int)); // calculate address of 6th element
int* p2 = &x[5]; // return address of 6th element
assert (p1==p2); // ensure both address are equal
Note that the array suffix operator [] used by p2 is merely sugar-coating. Behind the scenes, the compiler will automatically generate code equivalent to that of the p1 calculation. As such, there is no advantage in using one over the other.
What are the methods devised for finding and removing both syntax and logic errors?
al baigne tange zot fer bien ban zen, ban bbc
Can two different pointer variables point to the same memory location?
Yes, two different pointer variables may point to the same memory location. Two issues, though... If your code thinks the two pointers represent two different allocations of memory, then you risk deallocating one and not realizing that the other is now invalid. You need to make sure that your compiler optimization settings for volatility are correct, otherwise the compiler could generate code that does not always work correctly.
you dont. you insert a node after it and copy all contents of the previous node in it and put the new values in the old node. just make sure to keep the connections intact.
What is the use of the default case in a switch case?
The default case in a switch statement will be activated if none of the other case values match. It is used exactly for this purpose - if nothing else matches in the switch then this one will always match.
Without a default case value, if nothing matched in the switch then nothing will be done. Sometimes it is necessary to know that nothing matched.
How can you pass enum datatype as argument to function in c?
Here is the simple code, which demonstrates how you can use enum as function argument in c.
===================================================
#include <stdio.h>
// Enum declaration for power stat
enum PowerStat{ OFF, ON } powerStat; // Function printing the stat of power supply
void func( enum PowerStat ); int main(int argc, char* argv[])
{
// Set power supply stat OFF
powerStat = OFF;
// Call function to print the stat
func( powerStat);
// Set power supply stat ON
powerStat = ON;
// Call function to print the stat
func( powerStat);
return 0;
} void func( enum PowerStat stat)
{
printf("Power is = %s\n", stat ? "ON" : "OFF" );
} ==================================================
I haven't compiled and run above code but it has to work fine.
Let me know, if you found difficulty to compile it.
Email: ramji.jiyani@gmail.com
Cheats for applied microtype 3.0?
There are none. Why would you want to cheat
There are, such as when your on the part where if u make a mistake it erases the word, you just type the fist letter of that word 6 times and it skips that word,
For the ones that count the gwam, last two i think, just write anything and it will count.
And the fisrts part just wirite a bit more than half right and enter, it counts.
What is ADT how it is different from class?
ADT stands for abstract data type. It is basically a set of data values and associated operations that are specifically independent in nature. Examples of adt are stacks,trees,lists(doubly,circular,etc) and so on. Class is a user defined data type which the user can use in implementing a stack ADT or tree ADT. Class is used for implementation as it provides data hiding and encapsulation which are the features of ADT in object oriented programming. Hope this helps!
What is the difference between proposition and predicate?
A proposition is a statement that is either true or false (its "truth value"). Example of a proposition: Belgium is a country in Europe. A predicate is a proposition whose truth depends on the value of one or more variables. Example of a predicate: x is a country in Europe. In this example, x is the variable, and the statement is true or false depending on what is chosen for x. For x=Belgium, the statement is true; for x=Egypt, it's false.
A predicate with one variable can be seen as a property, that is true or false of something, where the something is left open. A predicate with two (or more) variables can be seen as a relation between things, where the things are left open.
A machine is merely something that performs or assists in performing a task.
The simplest examples of machines are levers, pulleys, and wedges, all of which have probably been around in some form or another since before recorded history. So, I suppose no one really knows how they developed.