Monday 21, May 2012
Welcome Guest, Register | Login  
      Home    |    Tutorials    |    Free Ebooks    |    Free Scripts    |    Articles    |    Blog     |    About Us    |    Contact Us

  pointer and there uses in c

Example code for pointer and there uses in c language.
Cut & Paste Script
#include <stdio.h>
#include <conio.h>
void a(int *ptr1, int *ptr2)
{
    int z;
    z=*ptr1;
    *ptr1=*ptr2;
    *ptr2=z;
}
void main()
{
    int num1,num2;
    printf("enter any two numbers\n");
    scanf("%d",&num1);
    scanf("%d",&num2);
    a(&num1,&num2);
    printf("%d\n%d\n",num1,num2);
   
}
 
   
     RELATED SCRIPTS
 
C program to show memory address of array elements and access array elements using pointers
This program will visualize the memory address of each array element and will show you how to access array elements using pointer....more »
Category : C Programs Hits : 527
   
Printing triangle of numbers using c
Here is the source code for printing triangle of numbers using c language. In this example user will input a number, it will start from 1 and will go to the give number.
1
2 3
4 5 6
7 8 9 10...more »
Category : C Programs Hits : 1186
   
Check number is prime or not using c

Here is a code example to check the number is prime or not a prime number. It will input number from user. If number is prime, it will print "Number is prime" on screen and if number is not prime it will print "Number is not prime".

...more »
Category : C Programs Hits : 2099
   
concatenate two strings c language
Here is an example code to concatenate two strings using clanguage....more »
Category : C Programs Hits : 1212
   
C program to join two strings without using strcat
This c language program will join two strings without using strcat string function....more »
Category : C Programs Hits : 231
   
   
SCRIPT CATEGORIES
 
  C Programs
C Programs scripts
  C++ Programs
C++ Programs scripts
  Java Programs
Java Programs scripts
  JavaScript Examples
JavaScript Examples scripts
  PHP Examples
PHP Examples scripts
  VBScript Examples
VBScript Examples scripts
 
 
 
POPULAR E-BOOKS
 
Download Make a Million with Your Mailing List  Ebook Make a Million with Your Mailing List
   
Download Producing Open Source Software: How to Run a Successful Free Software Project  Ebook Producing Open Source Software: How to Run a Successful Free Software Project
   
Download Mammoth Myspace Secrets Ebook Mammoth Myspace Secrets
   
Download An Introduction to GCC  Ebook An Introduction to GCC
   
Download Network Marketing: MLM Strategies for Success and Wealth Creation Ebook Network Marketing: MLM Strategies for Success and Wealth Creation
   
 
Studiesinn.com © 2012 All Rights Reserved.
Website Designed & Developed by TechXprtz