Thursday, January 27, 2011

Output / Error



The following code is written to get the multiplication and addition
of two given integer numbers. However, the multiplication of the
two numbers is correct but the addition of the two numbers is
incorrect. What is the output ? Identify the error.
#include<stdio .h>
#include<conio.h>
void main()
{
 int i=10, j=20;
clrscr();
multiply(&i, &j) ;
 addition(i , j) ;
getch() ;
}
multiply(int *1, int *j)
{
 *i=*i**j;
printf ("Multiplication of the two numbers is: : %d", *i);
}
addition(int i, int j)
{
i=i+j;
printf("\Addition of the two numbers is: : %d" , i) ;
}

Output..?


#include<stdio.h>  
#include<conio.h>
void main()
{
enum c{c·34, d-12, a, b};
clrscr():
if(a== (1==2))
printf("%d", a);
else
printf("%d" , b) ;
}

Tuesday, January 25, 2011

Questions - Answers

Hello All Now Any technical Questions Are Goings to posted here Weekly. Please Read Questions carefully and answer them within week.. i will post answer and explanation both after a time.. Please Do Reading Questions And answer them ... this is only For you.. If You all have any question and queries then post them also.. Thanks.