Mr.Pinaki welcomes u.

Archive for the ‘Uncategorized’ Category

‘C’ solution Set for Sem-end

Posted by: pinakinayak on: 15/12/2008

Answers:

Write a program to find the roots of a quadratic equation.

Ans: #include<stdio.h>
main()
{
float a,b,c,r,l,d;
printf(“enter three nos of equation:”);
scanf(“%f %f %f”,&a,&b,&c);
if(a= =0)
printf(“value of a should not be zero.”);
else
{
d=b*b-4*a*c;
if(d>0)
{
r=(-b+sqrt(d))/(2*a);
l=(-b-sqrt(d))/(2*a);
printf(“roots are real and [...]

‘C’ sem-end probable questions.

Posted by: pinakinayak on: 15/12/2008

‘C’ Probable Questions for Sem-end:

SIMPLE PROGRAMS:
1. Write a program that accept two integer numbers from user, and print their values in exchange form without using third variable.
2. Write a program to calculate total distance traveled by a vehicle in t seconds, distance = ut + (at^2)/2, Where ‘u’ is initial velocity, ‘a’ is acceleration [...]

Posted by: pinakinayak on: 15/12/2008

Predict the output / error(s) for the following:
Note : All the programs are tested under Turbo C/C++ compilers.
1. void main ( )
{
int const * p = 5;
printf(“%d”,++ (*p));
}
Answer: Compiler error: Cannot modify a constant value.
Explanation: p is a pointer to a “constant integer”. But we tried to change the [...]

famous quotes

Posted by: pinakinayak on: 29/10/2008

IF WE CANNOT LOVE THE PERSON WHOM WE SEE,… HOW CAN WE LOVE GOD,WHOM WE CANNOT SEE ? – MOTHER THERESA  .
IF YOU WIN YOU NEED NOT EXPLAIN ………. BUT IF YOU LOSE YOU SHOULD
NOT  BE THERE TO EXPLAIN – ADOLPH HITLER  
 IF YOU WANT REAL PEACE,…. DON’T TALK TO YOUR FRIENDS,…TALK WITH YOUR ENEMIES – [...]

Funny Indian Cartoons…

Posted by: pinakinayak on: 17/05/2008

Have fun!

Few Funny Definitions…

Posted by: pinakinayak on: 17/05/2008

School: A place where Papa pays and Son plays.

Life Insurance: A contract that keeps you poor all your life so that you can die Rich.

Nurse: A person who wakes u up to give you sleeping pills.

Marriage: It’s an agreement in which a man loses his bachelor degree and a woman gains her masters.

Divorce: Future tense [...]



  • pinakinayak: ok, u can reproduce them in your weekly
  • sudarshana: i want to reproduce your cartoons in our weekly vikrama,is it ok?

Categories