answersLogoWhite

0

#include stdio.h

#include conio.h

void main()

{

void intrchng(int*,int*);

int a,b;

printf("enter 1st value a:");

scanf("%d",&a);

printf("\nenter 2nd value b:");

scanf("%d",&b);

printf("\n after interchanging,outputs are\n");

intrchng(&a,&b);

printf("value of a: %d",a);

printf("value of b:%d",b);

}

void intrchng(int* ptra,int* ptrb)

{

int* temp;

temp = ptra;

ptra= ptrb;

ptrb= temp;

}

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What is swap in c?

swapping is nothing but interchanging the values of a given character for example : if a=5 , b=4 before swapping then it becomes a=4,b=5 after swapping


What is an array in C-programming?

A type construction: one or more values with the same type and name.


What are the two major types of programming languages in c plus plus?

Object oriented programming and structured programming.


How do you hold values in C programming?

You hold values by storing them in variables. If you need to hold values between executions, store them in non-volatile memory, such as a disk file.


What programming languages use a C switch statement?

There are two programming languages which use a C switch statement. The two languages are C and C++, hence the name C switch statement. There may be more, but those are the most obvious ones


What are two types of programming languages?

C++, Perl, Fortran


Can a parent function access values of a child function?

In C programming, there aren't any parent or child functions.


What is boolean in C Sharp?

A boolean is a variable type that can only be two different values True or False same as it is in most programming languages but in C# booleans are stated as: public bool var = True; or public bool var = False;


What is c and c in computer programming?

C and C++ are both high-level programming languages.


When do we use int in c plus plus programming?

'int' is one of the built-in data-types, it is meant to hold integer values.


Create a spiral in C programming?

create spiral in c programming?


When was C - programming language - created?

C - programming language - was created in 1972.