Why does this line of code always assign balance as 0?
Sorry, but I cannot answer this without actually seeing the line in question.
What is char far datatype in c language?
The far memory type may be used for variables and constants. This memory is accessed using 24-bit addresses and may be on-chip or external.
Declare far objects as follows: unsigned char farfar_variable; unsigned char const farfar_const_variable;
Why matrice's definition includes rectangular array instead of array?
Matrices itself is a combination of rows and columns.we can not use one-dimenssional array to save the values of matrices.instead we use the rectangular array which contains rows and columns.thats it.
What is magic number in c programming?
The term "magic" has its place in programming history, and generally referred to something that is either understood by those who are experts, or understood by no one, as to How It Works.
Magic numbers in C and other programming languages today have a number of meanings:
- a constant value used to identify a protocol or file formats (file signatures);
- unique identifiers unlikely to be mistaken to mean other things;
- values whose usages are unexplained.
Some interesting examples of magic numbers include:
- Java bytecode files start with 0xCAFEBABE, but compressed with "Pack200" the code becomes 0xCAFED00D (this is magical);
- image files start with unique identifiers like "GIF89a", "GIF87a", or begin and end with unique values;
- Mark Zbikowski designed the EXE file format, which starts with MZ (0x5A 0x4D), ensuring at least part of his name was burned into the annals of history;
- On older systems, newly allocated or freed memory was marked with the 32-bit hexadecimal value 0xDEADBEEF, and initializing memory came to be known in some circles as "deadbeefing the memory" or "the memory is deadbeef".
The related Wikipedia link below has a glut of information to sink your brain info regarding magic numbers.
What is the Difference between assembler and macro?
I am not sure about the answer but think so,
Assembler: Its a program that converts a low level language into machine code, and there is a one-to-one correspondence between the source language statements and machine instructions
Macro- Assembler: It performs the same task as does the assembler but there is some times a one-to-many correspondence between the source language statements and machine instructions.
Please discuss further...
Where can you find information on a J C Higgins 12 GA model 20-12 pump action SRO 58358?
www.histandard.info
What are register variables What are the advantage of using register variables?
Asks the compiler to devote a processor register to this variable in order to speed the program's execution. The compiler may not comply and the variable looses it contents and identity when the function it which it is defined terminates.
What makes for a good or bad variable name in C plus plus programming languages?
A good variable name is one that is clear, related to the data it stores. Also, you should try to avoid confusions with other variables.
Does The modulus operator can be used with a long double?
No. Nor with float or double. Use function dreml (or remainderl).
Write a program to find the average of three numbers using c language?
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
float avrg;
printf("enter the first number:");
scanf("%d",&a);
printf("enter the second number:");
scanf("%d",&b);
printf("enter the third number:");
scanf("%d",&c);
avrg=(a+b+c)/3.0;
printf("The average of given numbers is:%f",&f);
getch();
}
this c program is specifically for three variables only.
Is cursor implementation possible in queue or stack?
yes,cursor implementation possible in priority queue.
How many tokens are present in C?
There are 6 types of Tokens in C which are as follows:-
1. Keyword
2. Identifier
3. Constants/Literals
4. Variable
5. Operator
6. Punctuator
When can a function prototype be omitted?
when we write definition of a function i.e; body of a function above main() function, then the function prototype be omitted.
-Ramashankar Nayak,M.C.A,Pondicherry University
Which data type is the only one that can be used in calculations?
Which data type is the only one that can be used in calculations?
Do complex control structures improve the readability of programs?
Yes. However a control structure need not be complex. A control structure is simply a language mechanism that allows us to more easily express an otherwise procedural concept. For instance, consider the following procedural loop:
int x=0;
again:
if (!(x<10)) goto end;
// lots of statements...
++x;
goto again:
end:
This loop is much more easily expressed using a control structure:
for (int x=0; x<10; ++x) {
// lots of statements...
}
The resulting machine code will be exactly the same, so the level of complexity has not changed in any way. However, the latter is arguably much more readable because the loop conditions are all stated up front where they are easily seen and the body of the loop is contained within the loop statement itself.
What is the difference between Char a equals string and char a equals String?
Well, if you write like char a=string; it is wrong. You have to declare the size of the array or else put the brackets immediately after the variable declaration. You also have to put the string in quotes, or provide a comma-separated list of characters. E.g.,
char a[]={'s','t','r','i','n','g'};
Or more simply:
char a[] = "string";
Remember that C/C++ is case-sensitive and that all keywords are lower case. Thus Char would be regarded as an invalid keyword.
General form of three looping statement?
1. do statement while (condition);
2. while (condition) statement
3. for (exp1; condition; exp2) statement
4. LABEL: statements goto LABEL;