• 4


    #include
    #include
    #include

    main ()
    {
    int Nilai []={45, 23, 50, 8, 12, 10, 15};
    int *Ptr_Nilai;
    int i;
    Ptr_Nilai = Nilai;

    cout<<"\nNilai Ptr_Nilai : "<cout<<"\nAlamat array Nilai : "<cout<<"\nNilai yang ada pada alamat "< <<"adalah "<<*Ptr_Nilai;
    cout<<"\nElemen Array (dengan Array) : ";

    for (i=0; i<7 i="" p="">cout<cout<<"\n\nElemen Array (dengan pointer) ";
    for (i=0; i<7 i="" p="">cout<<*(Nilai+i)<<" ";
    getch();
    }
  • 0 komentar:

    Posting Komentar

    Pengikut

    Search This Blog

    BUILDING SINCE 2012

    BUILDING SINCE 2012

    "OMMI" consists of young and dynamic professionals thriving to provide the widest spectrum of corporate service solutions in a single window. We are a professionally equipped company started with the mission to provide a comprehensive range of Management Consultancy Services to our clients.

    Subscribe Us

    ADDRESS

    Office: Jl. Pangeran Hidayat No. 97 B. Pekanbaru

    EMAIL

    Office: permatabundapku@gmail.com
    bang_fauzil@yahoo.com

    TELEPHONE

    Office: +0761 849 102
    0852 7259 4146

    MOBILE

    0822 8385 1648