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

  arrays and pointers in c

An example code for arrays and pointers in c language.
Cut & Paste Script
#include <stdio.h>
#include <conio.h>

void lab(int *point,int *points );
void main()
{
    int myarr[100]={0};
    int *myarray;
    int i;
    myarray=&myarr[0];
    for(i=0;i<100;i++)
    {
        lab(&myarr[i],myarray);
    }

    for(i=0;i<100;i++)
    {
        printf("\n %d",myarr[i]);
    }
    getch();
}
void lab(int *point,int *points)
{
    int num;
    int nums=0;
    int z;

    z=point-points;
    if(z==0||z==1)
    {
        nums=1;
    }
    else
    {
        for(num=z;num>=1;num--)
        {
            if(z%num==0)
            {
                nums++;
            }
        }
    }
    if(nums==2)
    {
        *point=1;
    }
    else
    {
        *point=0;
    }

}
 
   
     RELATED SCRIPTS
 
pointer and there uses in c
Example code for pointer and there uses in c language....more »
Category : C Programs Hits : 784
   
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
   
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 Wealthy Wal s Guide to Making Money Online Ebook Wealthy Wal s Guide to Making Money Online
   
Download Affiliate Marketing Success Ebook Affiliate Marketing Success
   
Download  The 6 Dirty Little Secrets They Don't Want You To Know About Network Marketing Ebook The 6 Dirty Little Secrets They Don't Want You To Know About Network Marketing
   
Download The Affiliate Marketers Master Guide Ebook The Affiliate Marketers Master Guide
   
Download Mammoth Myspace Secrets Ebook Mammoth Myspace Secrets
   
 
Studiesinn.com © 2012 All Rights Reserved.
Website Designed & Developed by TechXprtz