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 is the function of IgG?

IgG functions as an antibody that helps in phagocytosis of microbes and activates NK cells to kill the pathogen.

How do printf's format specifiers e and f differ in their treatment of floating-point numbers?

%e expects a corresponding argument of type double; %f expects a corresponding argument of type float.

What is difference between volatile int and const volatile int?

volatile int means the code and fom outside from code can changes the value but in const volatile int, code cannot changes the value but fron ouside can change the value

What is object-oriented programming languages?

Programming real world entities as classes that have data members and member functions to operate on those data members, with rich functionalities such as abstraction, inheritance and polymorphism is called object oriented programming.

An object is nothing but an instance of a class.

abstraction refers to hiding the complicated details of a program while presenting a simplified interface to the user thus enabling him to use the functionalities without bothering about how they were implemented internally.

inheritance: where one class can inherit properties of another class thus helping in reuse of code.

polymorphism: meaning one name many functions, like area() which could be used to calculate area of a circle or triangle or square on the basis of parameters passed to it.

What is the size of object in programming language?

That would depend on the language; but usually, that should depend mainly on the amount of data stored in the object. For example, the programmer may decide an object needs an array of 10,000 ints, of 4 bytes each; that would require 40,000 bytes, plus some small overhead for the object itself.

That would depend on the language; but usually, that should depend mainly on the amount of data stored in the object. For example, the programmer may decide an object needs an array of 10,000 ints, of 4 bytes each; that would require 40,000 bytes, plus some small overhead for the object itself.

That would depend on the language; but usually, that should depend mainly on the amount of data stored in the object. For example, the programmer may decide an object needs an array of 10,000 ints, of 4 bytes each; that would require 40,000 bytes, plus some small overhead for the object itself.

That would depend on the language; but usually, that should depend mainly on the amount of data stored in the object. For example, the programmer may decide an object needs an array of 10,000 ints, of 4 bytes each; that would require 40,000 bytes, plus some small overhead for the object itself.

Why is the constructor of the Stack Linked List class empty?

The default constructor of a stack is empty because the default value of any container, including a linked list, is an empty container which requires no arguments (all members default to zero).

List the configuration options available for updating the OS?

Viruses and Worms can be difficult to remove from a computer. Software tools are required to remove viruses and repair the computer code that the virus has modified. These software tools are provided by the operating system manufacturers and security software companies. Make sure that you download the tools from a legitimate website.

There are a few ways to go about doing this. For beginners. Create a restore point in case of a problem with the update. Check the updates to ensure that you have the latest ones. Download the updates using Automatic Updates or from the Operating System manufacturers website. INSTALL the update. Restart if required, but you shouldn't need to.

Role of instruction pointer in 8086?

Its role is to point to the next instruction to be executed in the CPU. It always points to the next instruction to be executed in the CPU

What kinds of crafting supplies can be found at Loop?

Loop offers a wide variety of crafting supplies for any hobbyist. They sell yarn and knitting supplies which have come from all around the world. They also offer books and patterns for one to follow and make.

C program to print prime numbers?

class primenoSeries

{

void main ()

{

int i = 1; // Used to divide number and check if they are factors or not.

int C = 0; // used as a counter for number of factors.

int n = 1; // Represent the numbers.

while (n > 0)

{

if ( n % i n )

{

C = 0;

n++ ;

i = 1;

}// Check next number since previous number had more than two factors.

else

{

i++ ;

}

}

else

i++ ;

}

}

}

A c program to find maximum number in a 3 by 3 matrix?

int matrix[][]; // the matrix to find the max in

int max = matrix[0][0];

int r,c;

for(r = 0; r < 3; ++r) {

for(c = 0; c < 3; ++c) {

if(matrix[r][c] > max) {

max = matrix[r][c];

}

}

}

// max is now the maximum number in matrix

How do you get segmented base and offset when you have logical address?

You cannot. The conversion goes this way:

segment+offset -> [segment-table] -> linear_address -> [page-table] -> physical_address

PS: In most cases there is only one (4GB long) segment (or one code-segment and one data-segment), so offset is quite the same as linear address

Write a C function to remove duplicates from an ordered array for example if input is 11134458810 then output should be 1345810?

Assuming that the input has already been put into an int[] array, the function to remove duplicates will operate as follows. The function will create an output array that will accept each first unique int of the input array. A comparator will compare each following cell, ignoring duplicates until the end of the array is reached. The output array will then be printed.

Can you tell me a C program to find if the strings are equal using pointers?

It is called strcmp, part of the standard run-time library. Returns 0 if the two strings are equals, non-zero otherwise.

Evaluate the expression -3?

As it stands (because the rest of the expression may be missing) the evaluation to the constant value of -3 will be the result.

What are derived data types in the C language?

You seem to have lost your text book so I am giving you a link where you can study data types, including derived data types.