it is a type of a function that is used to get output from the user that is always
used to keep a record of a well known idea thar are captured in the mind of the students in the school as well as the students in their life of real
What is the utility of floating point representation of numbers?
A floating point number is, in normal mathematical terms, a real number. It's of the form: 1.0, 64.369, -55.5555555, and so forth. It basically means that the number can have a number a digits after a decimal point.
To decide whether given processor is using little endian format or big endian format?
There are n no. of ways for determining endianness of your machine. Here is one quick way of doing the same.#include <stdio.h>
int main()
{
unsigned int i = 1;
char *c = (char*)&i;
if (*c)
printf("Little endian");
else
printf("Big endian");
getchar();
return 0;
}
In the above program, a character pointer c is pointing to an integer i. Since size of character is 1 byte when the character pointer is de-referenced it will contain only first byte of integer. If machine is little endian then *c will be 1 (because last byte is stored first) and if machine is big endian then *c will be 0.
Interrupt handling is performed by the operating system kernel. In the Intel IA-32 platform, for instance, it is handled at Ring-Zero.
C++ code does not normally run in the kernel. It runs in user space, such as in Ring-Three. Unless the operating system allows you to load C++ code in non pageable Ring-Zero space, you cannot write C++ programs to handle interrupts. Even if you could do so, all of the dependencies, such as libraries, would need to also be there, unless you wrote dispatch stubs to transition into and out of Ring-Zero non-pageable space.
That said, you are looking for the Device Driver Kit, or DDK. (In the Windows platform.)
What do you call a person who writes algorithms?
If the algorithms are intended to be processed by a machine then they are known as computer programmers. Otherwise they are mathematicians.
main()
{
int age[100],count=0,i;
clrscr();
for(i=0;i<100;i++)
{
printf(" enter the person age %d",i);
scanf("%d",&age[i]);
}
for(i=0;i<100;i++)
{
if(age[i]>=50 && age[i]<=60)
{
++count;
}
}
printf(" no.of persons in the age group 50 to 60 is %d",count);
getch();
}
What are the advantages and disadvantages of high level language?
Advantages
- more human-understandable, logical and easy-to-learn syntax that enables programmer to code more effectively
- portability - some of them can be hardware and OS indipendent, for example Java
Disadvantages
- they are usually slower than lower-lever languages, for example assembler is faster than C which is faster than C++ which is faster than c# or Java (on the same computer, of course)
What is an example of square array?
*SQUARE
definition- A 4-sided regular polygon with all sides equal and all internal angles 90°example- A computer screen
*SQUARE (SQUARE ROOT)
definition- A divisor of a quantity that when squared gives the quantity
example- The square roots of 25 are 5 and −5 because 5 × 5 = 25 and (−5) × (−5) = 25.
How can airplanes hover with no forward speed?
An aircraft has what is called a stall speed. this speed is the point at witch the wings stop creating the necessary lift needed to keep it aloft. depending on many factors different aircrafts have different stall speeds. some as slow as 38 knots. so essentially this small aircraft will need to be pointed in the direction of the wind witch must be a sustained wind of at least 38 knots. In theory it is possible but highly unlikely. There are dubious claims that this type of aircraft can actually fly backwards. Its all a factor of the relative wind velocity across the wing.
Improved AnswerAircrafts are able to hover with no forward speed.The Harrier and the F-35Bs can both do it.
Basically, how they work is similar to helicopters
Instead of forward thrust for lift (like other aircrafts),
The thrust points downward to push the body up.
Both aircrafts' body and flaps are designed to either cruise or takeoff/land vertically
These two are the only two on top of my head, not sure if there are others like them
Oh, and one more thing: these aircrafts are called VSTOL aircrafts (stands for Vertical Short Take Off and Landing)
Hope that helps!
What high level computer language was named after a French mathematician and philosopher?
The programming language Ada was named for Ada Lovelace (a.k.a. Augusta Ada Byron a.k.a. Lady Lovelace), (b-1815, d-1852) a mathematician sometimes considered to be the first programmer.
Lovelace gained fame for writing a description of what is now considered one of the first computers: a mechanical device developed by Charles Babbage in the mid 1800's.
Explanation of top down marketing?
Top down marketing is a branding strategy where country strategies are based upon global branding strategies.
What are some advantages of the internet?
Some advantages of the internet are being able to job search for one. Also being able to research for school, or even looking up a recipe. Keeping in touch with E mail and Shopping online, or even online dating!
Is it safe to use open source software with Microsoft Windows?
They are 2 different things, not compatible in nature.
However, you can have a project to have iOS, Windows, Linux, etc all running under your new open source operating system, then the answer may be yes.
Windows, from the other hand, never have open source in mind, so itself is definitely not going to have features compatible to open source. (if there is any, it is accidental, and Microsoft may take that away in the future)
Write a program for addition of to array in c program?
#include
#include
void main()
{ int a[10][10],b[10][10],c[10][10],i,j.r,c;
printf("\nNo. of Rows?");
scanf("%d",&r);
printf("\nNo. of Cols?");
scanf("%d",&c);
printf("\nEnter elements for 1st array:");
for(i=0;i
printf("\nEnter elements for 2nd array:");
for(i=0;i
for(i=0;i
printf("\nDisplaying the result:\n");
for(i=0;i
}
getch();
}
If the ans helps you,plz increase the trust point.
How can you allocate memory dynamically in c?
char* new_string; // could be any type
new_string = (char*) malloc (5120); // allocate memory - typecast is necessary
if (new_string == NULL) ... memory exception ...
... use the data ...
free (new_string); // release memory when done
What are the Examples of mnemonics used in assembly language?
mnemonics are nothing but the symbols used to indicate a particular meaning in assembly language.
They are used to make programming easier for programmers.
For example BAL is a mnemonic for "branch-and-link."
All websites use HTML, but some sites use HTML in conjunction with one or more other coding languages like Javascript or CSS. HTML-only means it uses just the basic coding.
What does a modem and how is it related to binary or ASCII code?
A modem, short for modulator/ demodulator, "packages" data that is being transmitted so it fits whichever transfer protocol it's working with. That includes chopping up the data to the proper packet sizes, adding error-checking bits and addressing info, etc. It also does the opposite with received data, "unpacking" it so your computer can work with it.
What is the difference between algorithm and flowcharts?
They both are same. Both of them mean a set of instructions. but, an algorithm is a simple flow of instructions whereas in a flowchart the instructions are represented pictorially, and as the name suggest it is a 'flow chart'.
Write a c program using dynamic memory allocation to transpose a matrix?
Type your answervoid main()
{
int **a,**b,**c;
//int c[3][3];
int a_r,a_c,b_r,b_c;
int i,j,k;
clrscr();
again:
printf("\nenter rows and columns for matrix one:");
scanf("d",&a_r,&a_c);
printf("\nenter rows and columns for matrix two:");
scanf("d",&b_r,&b_c);
if(a_c!=b_r )
{
printf("\ncan not multiply");
goto again;
}
/* allocate memory for matrix one */
a=(int **) malloc(sizeof(int *),a_r);
for( i=0;i {
a[i]=(int *) malloc(sizeof(int*)*a_c);
}
/* allocate memory for matrix two */
b=(int **) malloc(sizeof(int)*b_r);
for( i=0;i {
b[i]=(int *) malloc(sizeof(int*)*b_c);
}
/* allocate memory for sum matrix */
c=(int **) malloc(sizeof(int *)*a_r);
for( i=0;i {
c[i]=(int *) malloc(sizeof(int)*b_c);
}
printf("\n enter matrix one %d by %d\n",a_r,a_c);
for(i=0;i {
for(j=0;j {
scanf("%d",&a[i][j]);
}
}
printf("\n enter matrix two %d by %d\n",b_r,b_c);
for(i=0;i {
for(j=0;j {
scanf("%d",&b[i][j]);
}
}
/*initialize product matrix */
for(i=0;i {
for(j=0;j {
c[i][j]=0;
}
}
/* multiply matrix one and matrix two */
for(i=0;i {
for(j=0;j {
for(k=0;k {
c[i][j]=c[i][j]+a[i][k]*b[k][j];
}
}
}
/* display result */
printf("\n Product of matrix one and two is\n");
for(i=0;i {
for(j=0;j {
printf("%d\t",c[i][j]);
}
printf("\n");
}
/*free memory*/
for(i=0;i {
free(a[i]);
}
free(a);
for(i=0;i {
free(b[i]);
}
free(b);
for(i=0;i {
free(c[i]);
}
free(c);
printf("\npress any key");
getch();
}
I would suggest you go to
http://code.freefeast.info/matrix-multiplication-using-pointers-in-c-dynamic-matrix-multiplication-in-c/
It has got a well formatted and commented code for this problemWhich island is also the name of a popular programming language?
Java (an Indonesian island). However, the Java programming language was named after the Indonesian coffee bean (a favourite of one of its developers) rather than the island itself.
What are the three main search expressions recognized by Boolean logic?
AND OR NOT
In a google search, the AND is implied, the OR is explicit, like (iceberg OR glacier),
and the NOT is expressed with a '-' before the relevant term.
High-level programming language intepreted?
EZtrieve and EZtrieve Plus are examples of a high level language that can be either compiled or run interpretive.
What is an auto ethnographic text?
Autoethnography is a reflexive perspective on the self as researcher. A text is written in the research process, on the researcher's experience, which can be called an autoethnographic text. This is sometimes referred to as reflexive ethnography.
#include<conio.h>
#include<stdio.h>
void main(void)
{
int sell_pr, profit, cost_pr, cost_pr_one_item ;
clrscr();
printf("Please enter the selling price of 15 items:");
scanf("%d", &sell_pr);
printf("Please enter the profit earned on 15 items:");
scanf("%d", &profit);
cost_pr = sell_pr - profit;
cost_pr_one_item = cost_pr/15;
printf("Cost price of one item is %d", cost_pr_one_item);
getch();
}