Find the error in the following program struct point
{struct point *next; int data; } x; main() {int...data;
}
x;
main()
{int i;
for(x=p;x!=0;)
x=x->next,x++;
freelist(x);
}
freelist(x)
{free(x);
return
}
Assume I have a linked list contains all of the alphabets
from "A" to "Z?" I want to find the letter "Q" in the list,
how does you perform the search to find the "Q?"
Given a simple program designed to take inputs of integers
from 1-1000 and to output the factorial value of that
number, how would you test this program? You do not have
access to the code. Please be as specific as possible.
When is the last time you coded in C/C++? What is the most
lines of original C/C++ code you have personally written in
one project? How confident are you in your ability to write
C or C++ without a reference?
i hav very low percentage in 12th n BSCwhich is around
50.......coz it was just imposed on me 2 b a science
graduate,nw m doin MCA n hav aggregate 74% ....what shud i
answer if company's HR ask me about dis much low previous
percentage??????
Write a program to demonstrate the use of 'Composition' in C++
68
To modify an, existing worksheet. What steps are involved
for:
1. Inserting and deleting rows and columns.
2. Printing cell formulas 3Jld displayed values
3. Using the page setup command
60
How many types of casting are there in C++?
When is a dynamic cast,static_cast,reinterpret cast used?
design a c++ class for the chess board,provide a c++ class
definition for such class(only class definition is required)
97
If P is the population on the first day of the year, B is
the birth rate, and D is the death rate, the estimated
population at the end of the year is given by the formula:
The population growth rate is given by the formula:
B – D
Write a program that prompts the user to enter the starting
population, birth and death rates, and n, the number of
years. The program should then calculate and print the
estimated population after n years. Your program must have
at least the following functions:
1. growthRate: This function takes its parameters the
birth and death rates, and it returns the population growth
rate.
2. estimatedPopulation: This function takes its
parameters the current population, population growth rate,
and n, the number of years. It returns the estimated
population after n years
Your program should not accept a negative birth rate,
negative death rate, or a population less than 2.
please answer my question ....
How to execute business logic for only once ..?even though
user clicks submit button multiple times by mistake..?
(i disabled JavaScript)
56
i had specified the access specifier for abstarct class
member like (pure virtual function) as private.But it can
be accessed by the derived class.How the private member of
one class is accessed by other class.if any body face this
problem and found the solution plz reply to me.
Can we generate a C++ source code from the binary file?
155
Explain when u will use Observer pattern and how u will
implement in c++ .
17
write a code for this:trailer recordId contains a value
other than 99, then the file must error with the
reason ‘Invalid RECORD_ID’(User Defined Exception).