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 an easy way to learn C plus plus?

Simplest but possibly the hardest way to learn: 1. Buy a book that can teach you how to use C programming language 2. Get a program to process C programming language in, so as to have practical experience.

AnnaSophia Replied an email i sent her and we emailed for a while and then she said she would be busy for a while and could not reply for a while she has not replied a long time what is going?

It is highly unlikely that you were ever communicating with the real AnnaSophia Robb, it was most likely an imposter. She almost certainly is not allowed to give out her personal info to total strangers. If you are certain that you were talking to her then you probably go to her school so why not walk up to her and ask? Socrates, The Guru Go to AnnaSophiaFIRE for all the truth on AnnaSophia Robb www.annasophiafireforums.co.nr

Major advantage in cpp compared to c?

The major advantage of C++ over C is the Object Oriented Programming compatibility in C++.

What is the difference between the chords c and cm?

The C chord contains the notes C, E, and G. The C Minor chord contains the notes C, E Flat, and G.

Applications of laplace transform in computer science?

We are using integrated circuits inside the CPU. Laplace Transformations helps to find out the current and some criteria for the analysing the circuits... So, in computer field Laplace tranformations plays vital role...

What is the process of allocation of memory for an integer type variable?

To dynamically allocate memory, use the following function (stdlib.h I believe):

int *variable1 = malloc(sizeof(int));

Write a program to print the Fibonacci series in php upto input value using recursive function?

The Fibonacci sequence uses recursion to derive answers. It is defined as: F0 = 0

F1 = 1

Fn = F(n - 1) + F(n -2) To have this sequence printed by a php script use the following:

function fibonacci($n)

{

if($n 1)

return 1; //F1

else

return fibonacci($n - 1) + fibonacci($n - 2); //Fn

} This recursive function will print out the Fibonacci number for the integer n. To make it print out all the numbers in a particular set add this to your script.

for($i = 0; $i < 15; $i++)

{

echo fibonacci($i) . "<br />";

} So your final result would look like. <?php

function fibonacci($n)

{

if($n 1)

return 1;

else

return fibonacci($n - 1) + fibonacci($n - 2);

} for($i = 0; $i < 15; $i++)

{

echo fibonacci($i) . "<br />";

}

?>

What is shipping documentation?

shipping documentation are the documents which are prepared to export all shipment.

Is resisting arrest a class c misdeamenor?

Resisting arrest is a Class A misdemeanor, but can be considered a Class D Felony if one tries to flee in a vehicle.

Explain the difference between an argument and a parameter Use a C plus plus program segment to illustrate your answer?

In C++ there is no such thing as a parameter, there are only arguments, both actual and formal. Some languages use the term parameter to mean a formal argument and argument to mean an actual argument, while others reverse the meanings completely. Some languages make no distinction at all and use the terms parameter and argument interchangeably. However, C++ is quite clear on this: actual arguments are the names that you pass to a function, while formal arguments are the names received by the function. Even so, you will still encounter incorrect usage of the terms parameter and arguments, even by C++ experts (myself included!)

The following example code demonstrates the difference between an actual argument and a formal argument, as the terms apply in C++:

int foo(int formal)

{

return(formal*2);

}

void bar(int& formal)

{

formal*=2;

}

int main()

{

int actual=1;

actual = foo(actual);

bar(actual);

return(0);

}

The function foo() declares a formal argument by value while bar() declares a formal argument by reference. In main() we declare a variable with the name actual and pass this actual argument to both functions in turn.

When we pass actual to foo(), the value of actual is assigned to formal. Since formal is a copy of actual, they are separate names with separate values (initially they will have the same value of course). Thus any changes made to formal will have no effect on actual, hence we must assign the return value from foo() to actual in main(), in order to record the change made by foo().

When we pass actual to bar(), a reference to actual is assigned to formal. A reference is simply an alternate name for the same argument, however the name actual is not visible to bar(), so they are still separate names, but they always have the same value. Thus any changes to formal will affect actual, thus there is no need to assign any return value to record the change.

What is polynomial in c language?

A polynomial is a mathematical equation in the form ...

f(x) = Ax0 + Bx1 + Cx2 + Dx3 ... etc.

Often, the ordering of the terms is the other way around, but I used this order to segue into the discussion of computer representation.

What you need, are the coefficients, A, B, C, D, etc. in an array. Most often, one would create an array of double, and place the coefficients into the array.

double x[4] = {A, B, C, D};

This way, x[0] = A, x[1] = B, etc. and you could write code to manipulate the polynomial in various ways.

Can we directly multiply two pointer variables?

Only subtract, if they are pointers to the same type. Example:

double coefficients [12], *p= &coefficients[3], *q= &coefficients[4];

printf ("q-p=%d\n", (int)(q-p));

Note: The result is 1, not sizeof (double)

Write a program to input a string in the form of name and swap the initials of the namefor example enter a string is rohit Kumar sharma and should be printed RK Sharma?

Get the string from user , then U Split the string with space and put in a string array .

Then Find Length of string array , Take first letter of each element in array, Except last. Assigned those to a string, then Fetch Last element of an array, Add it With that String.

That's it.

Why can't have only float data type instead int and float?

Because that is how the language is defined. It has floating data types and integral data types.

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.