Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C program to demonstrate call by reference:
void disp(int *,int*,int*,int*);
void main()
{
int a=2,b=3, sum,mul;
printf("Enter 1st no:\n");
scanf("%d",&a);
printf("Enter 2nd no:\n");
scanf("%d",&b);
disp(&a,&b,&sum,&mul);
printf("\nsum=%d",sum);
printf("\nMultiplication=%d",mul);
getch();
}
void disp(int *x,int*y,int *s,int *m)
*s=*x+*y;
*m=(*x)*(*y);
Output:
Step 1 Define the start of the program It should be noted that within C all commands should end in a semi-colon. For most of your programs the definition of a program header as
hwat is the area fsdjlakl;aeklfjtealrtl;gka
program????
Is it possible to create your own header files? - Yes, it's possible to create a customized header file. - To do this, you just need to include function prototypes that you
#include "stdafx.h" #include iostream using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int NumbHold[5]; int * ptrNumb;
Program of Binary tree: Btree::Btree(int O) : itemsInContainer(0) { finishInit(O); } Btree::~Btree(void) { if( root != 0 ) delete roo
#question.A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a s
Question 1 Describe the theory behind class templates and function templates along with relevant programming examples Question 2 With the help of suitable programming example
How to Create A Data File? A data file should be created before it can be processed. A stream-oriented data file is able to be created in two ways. One is to create the file st
getting a palindrome using minimum replacement
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd