What are thing things called that look like stuff that you type like 8 equals equals equals D?
8 is totally unrelated from D and they will never be equal, D as a roman numeral stands for 500 which is way higher than 8. otherwise D usually hangs out with the other letters. you're stupid
What would run if this code excutes?
This is the code
int[] nums= {3,0,4,2,1};
int len = nums.length;
for (int i = 0; i < len; i++)
for (int count = 1; count <= len; count++)
nums[i] = nums[nums[i]];
pseudo code algorithm to create a linked list
What language used orthogonality as a primary design criterion?
LIPS a functional language is one in which computations are made primarily by applying function to given program
What is a long in c programming?
It is used with other data types such as long int or long float (=double). The capacity of the data types got increased with long keyword
What is the use of Default statement in switch case?
C++ Provides a multiple branch selection called as switch. This selection statement succesively test against a list of integer or character constants. When a match is found the statements associate with constants are executed.
When no match is found default statement is used.
Which directive informs the compiler in which any custom server control added to the page or not?
Register directive informs the compiler in which any custom server control added to the page or not
What are the sources of data in statistics?
Some sources include sample surveys, studies, census, questionnaires, and observation to name just a few.
Can a derived class make a public base function private true or false?
True. A derived class can make a public base function private. The derived function is private, within the derived class, but public in other contexts.
How can you draw the flowchart to reverse a given number?
if you mean to make the number negative, assuming the number is positive to start with, you can assign the number to X and then do X-(2X)
No, they want to reverse the order of the digits. There are two problems with that:
1. it is their homework, so they should do it themself
2. one can't draw flowcharts here
HTML, JavaScript, PHP, SQL, Visual Basic, Java, C#, Ruby, Python, C, C++, Objective-C, Perl.
What is the function of a filipiniana section in the library?
It means it's all about the Philippines...you're probably in the Philippines right? Here all things (including history, fables or stories in Tagalog) are located in this certain place
What is the meaning of an ellipsis in a syntax?
In grammar, an ellipsis is when one or more words are left out and these words must be supplied by the listener or reader. Ellipsis in Greek means to leave out.
Why can't you initialize data members in a structure in c or c plus plus?
You can initialise a structure's data members in both C and C++.
In C, you initialise the structure at the point of instantiation.
typedef struct foo
{
int m_data1;
double m_data2;
} foo;
int main()
{
foo f={.m_data1=42, .m_data2=1.99};
return 0;
}
You can also assign members separately from instantiation, but this is considered bad coding practice as all the members will be initialised with garbage (whatever happens to reside in memory at the point of instantiation). This raises the potential for accessing that garbage data before it is assigned.
foo f;
/*
any attempt to access f's members at this point
will result in undefined behaviour
*/
f = (foo) {.m_data1=42, .m_data2=1.99};
/* f is now initialised */
In C++, a struct is exactly the same as a class except it has public access by default, rather than private access by default. As such, you can use the class constructor initialisation list to initialise the data members to default values:
struct foo
{
foo():m_data1(42),m_data2(1.99){}
private:
int m_data1;
double m_data2;
};
Typically, you will also provide an overloaded constructor to initialise the members to more specific values:
foo(const int data1, const double data2): m_data1(data1), m_data2(data2){}
However, you can also combine the default constructor and the overloaded constructor to produce an overloaded default constructor:
foo(const int data1=42, const double data2=1.99): m_data1(data1), m_data2(data2){}
You can also implement a copy constructor with an initialisation list:
foo(const foo& f):m_data1(f.m_data1),m_data2(f.m_data2){}
Note that initialisation lists are more efficient than using the constructor body to perform initialisation. Therefore you should always perform as much initialisation as possible in the initialisation list and only use the constructor body for any additional initialisation processes that cannot be handled by the initialisation list. Ideally, members should be initialised in the same order they were declared.
Note also that the initialisation list employs construction syntax rather than assignment syntax, even for primitive data types. If the class or structure is a derived class, you can also invoke specific base class constructors through the initialisation list. Again, these base classes should be listed in the same order specified by the inheritance list, and should be listed BEFORE the data members since the base classes must be constructed first.
Why clear is written after data type declaration in C language?
C has no clear() function as standard. If your implementation provides one then it is implementation defined and therefore non-portable. I would assume that it is used to clear the console (much like the CLS command would). Note that the type declaration is immaterial; it is simply the convention in C to declare all variables at the top of a function rather than declare at the point of usage.
Why is it possible to save a C file with a different extension name?
Because for the text editor (and the operating system) there is no such thing as 'C file' only 'file', and files can have any names and extensions.
A cross-platform compiler can compile applications for multiple platforms, such as Windows, Linux, and Mac. An open-source cross-platform compiler is GCC (the GNU C Compiler). A cross-platform compiler uses a language that can be compiled on to multiple targets, such as C, C++, or haxe. It is required to compile the same source code multiple times, one for each target platform; a program such as make can be used to reduce the number of commands the user actually executes to just a single command.
subtract 20000000H from 30000000H,
because the page table is just a bunch of offsets. So the memory manager would lookup 20000000H in the table, find 10000000H, add'em up and get 30000000H. If that's how it works.
The VDE Association for Electrical, Electronic and Information Technologies
You want to become perfect in c language programming?
yes i want to be best in c programing.please provide some suggestions..
Write an algorithm for perfect number or not?
1. Get any no.
2. Find it factors.
3. Add its factor.
4. If sum of its factors is equal to itself then it is a perfect no. otherwise not
Is the use of functions a more efficient use of a programmers time or the computers time?
Functions act as logical separations of functionality to help the developers keep their code organized and robust.
Generally you should code for readability and correctness, let the compiler worry about optimizing. As long as you are following proper CS principles, the compiler will generally do a better job of optimizing than you will.
What is the main function of sysexe files?
You mean 'SYS.EXE'? It is used under MS-DOS to make a floppy bootable.