answersLogoWhite

0

📱

C Programming

Questions related to the C Computer Programming Language. This ranges all the way from K&R to the most recent ANSI incarnations. C has become one of the most popular languages today, and has been used to write all sorts of things for nearly all of the modern operating systems and applications. It it a good compromise between speed, power, and complexity.

9,649 Questions

What are C reserved words?

C reserved words are words which cannot be used as names. This includes all the built-in type names, including int, char and double and their aliases, the modifiers long, short, signed and unsigned, and all language keywords such as if, else, for, while, return and so on.

Is it is true that the identifier and a variable in C programming language are same?

No. Identifier is a scientific name for the name.Variables, functions, types, etc -- each have an identifier.

What is the difference between declaring variable and initializing variables?

Actually, there is a third step, call definition.

Declaration is a statement to the compiler of what type an identifier is, definition is the allocation of memory for that identifier, and initialization is the assignment of an initial value to that identifier. Usually, declaration and definition are done together, but you can also add initialization in that step if desired.

int a; /* declaration and definition */

a = 1; /* initialization */

int a = 1; /* declaration, definition, and initialization */

For the case of seperate declaration and definition, consider the struct...

struct _mystruct { int a; }; /*declaration */

struct _mystruct mystruct; /* definition */

struct _mystruct { int a; } mystruct; /*declaration and definition */

Note: To be more precise:

struct _mystruct; /* struct declaration */

struct _mystruct { int a; }; /* struct definition */

typedef struct _mystruct MYTYPE; /* type definition */

extern struct _mystruct mystructvar; /* variable declaration */

struct _mystruct mystructvar; /* variable definition */

struct _mystruct mystructvar = {7} ; /* variable definition with initialization */

struct _mystruct { int a; } mystruct; /* struct definition and variable definition */

extern struct _mystruct { int a; } mystruct; /* struct definition and variable declaration */

How do you create own library in C?

Compilation, linking, library-creation is not defined in the C-language standards, so it is platform-dependent. The core of it: create the objects modules, and find a library-creating utility (TLIB.EXE, ar, etc)

What is order list in data structure?

In general, any ordered list is any list which follows some sort of arbitrary system to determine the order the elements of that list are displayed.

In reference to HTML, an ordered list is characterized by a "<ol></ol>" tag set. When the HTML is rendered, the individual "items" (characterized by "<li></li>" tag sets nested withing the aforementioned set) are displayed in order, characterized by a numeric bullet representing their position on that list, beginning at the value "1" and incrementing accordingly.

What is an example of lack of orthogonality in C?

Orthogonality is to do with a right angle, what has orthogonality got to do with general computer programming?

I fear this is another badly asked question by someone engaged in homework avoidance and that the quality of the question indicates the success of previous

homework avoidance.

How do you generate quantum program using spss?

The Question is slightly unclear. If you have a SPSS file and you want to generate the Quantum program you can use the utility called spss2qt. This is a small program in SPSS that will convert the SPSS data into ASCII data with a Quantum program with proper column location. However you will have to modify the program to display output to your requirement as this utility will give very basic quantum program for the data. Regards Sachin You can reach me on sacsar@yahoo.com

In int arr10 what is the upper bound?

9, the elements are: arr[0], arr[1], ... arr[9]

14 P ON A N C?

14 people on a netball court

What is roadmap on a C-arm machine used for?

It's used when the surgeon needs to check the vasculature (arteries/veins) during a surgery case. Regular c-arm radiologic fluoro lets one see bones and surgical hardware being placed in bones during replacements or rebuilding of a damage bone or bone joint. Roadmapping on a c-arm is also fluoro but allows one to see the arterial and venous flow to see if there are any abnormalities in the arteries or veins.

What is the difference between a stock variable and a flow variable?

A stock variable is measured at one specific time, and represents a quantity existing at that point in time (say, December 31, 2004), which may have accumulated in the past. A flow variable is measured over an interval of time. Therefore a flow would be measured per unit of time (say a year). Flow is roughly analogous to rate or speed in this sense

What is a factor string length?

The length of a factor string of a given number is limited by how many factors there are. The smallest are factor pairs, the longest is the prime factorization.

2 x 18 = 36

2 x 2 x 9 = 36

2 x 2 x 3 x 3 = 36
Factor strings are the 2 numbers that equal to the number that has been asked to you

Develop program code for two by two matrix multiplication?

/* Multiplication of matrics is very easy in c, here is code below */

#include
main()
{
int temp=0;
int arr[3][3]={1,2,3,4,5,6,7,8,9};
int arr1[3][3]={10,11,12,13,14,15,16,17,18} ;
for(int i=0;i<=2;i++)
{
printf("\n");
for(int j=0;j<=2;j++)
{
for(int k=0;k<3;k++)
{
temp = temp+ (arr1[j][k]* arr[k][j]);
}
printf("%d\t",temp);

}
}

What is the abrreviation of while?

The abbreviation for "while" is typically "w/" in informal contexts, though it is not commonly abbreviated in formal writing. In specific contexts such as programming or mathematics, "while" may be represented by the symbol "∗" or similar shorthand, but these are not standard abbreviations. Generally, it's best to use the full word in most writing situations.

What will be the results of the operations sizeof 3 within single quotes and sizeof 3 within double quotes and sizeof 3 and why?

sizeof('3') returns 1 - its the size of a char sizeof("3") returns 2 - its the size of two chars - '3' and '\0' sizeof(3) returns 4 - its the size of an int (in a 32 bit system)