Wisdom Materials
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us
C Programs
/ Call by value C program
Program Name
Write a C Program for Call by value C program.
Theory
Program Code
Copy Program Code
#include
void add(int *pa, int *pb); int main() { printf("Call By Address C Program\n"); int *x,*y,a=4,b=5; x=&a; y=&b; add(&a,&b); return 0; } void add(int *ptra, int *ptrb)// Function Definition *a=&x *b=&y { int *ptrc; *ptrc=*ptra+*ptrb; printf("Sum using pointers= %d\n",*ptrc); }
Input
Call By Address C Program
Output
Sum using pointers= 9
Online C Compiler (To copy paste and Run the c program)
Home
Back