Results 1 to 2 of 2

Thread: kya koi meri help karega??????? its urgent.....

  1. #1
    suraj goyal's Avatar
    suraj goyal is offline Senior Member
    Last Online
    14th March 2019 @ 02:28 PM
    Join Date
    05 Jul 2010
    Location
    suncity(jodhpur)
    Age
    34
    Gender
    Male
    Posts
    1,950
    Threads
    43
    Credits
    69
    Thanked
    89

    Default kya koi meri help karega??????? its urgent.....

    ASALAAM O AALEKUAM

    dosto mujhe help ki jrurat hai, or ummid hai ki help mil jaayegi.

    mera sawal programming se related hai.

    kya koi 2-D string ko as a reference kisi function ko pass karne ka syntax batayega, ho sake to samjha bhi de, c ya c++ dono main se kisi bhi ek language main bata sakte hai. plllz agar kisi ko aata hai to mujhe batao, ye urgent hai........
    [CENTER][COLOR="Blue"][SIZE="5"]Respect seniors & follow the ITD rules[/SIZE][/COLOR][/CENTER][CENTER][COLOR="Red"][SIZE="5"]Peace and friendship...[/SIZE][/COLOR][/CENTER][CENTER][COLOR="blue"][SIZE="5"][URL="http://www.itdunya.com/showthread.php?p=2578950#post2578950"]disable right click on desktop[/URL] [/SIZE][/COLOR][/CENTER]

  2. #2
    KHANZZzzz's Avatar
    KHANZZzzz is offline Senior Member+
    Last Online
    23rd December 2014 @ 10:39 PM
    Join Date
    14 Dec 2008
    Location
    Athens, Greece
    Age
    34
    Gender
    Male
    Posts
    2,652
    Threads
    187
    Credits
    127
    Thanked
    446

    Default

    Assalam O Alikum,

    A little Example

    IN TURBO C / C ......... both tested.

    #include <stdio.h>
    #include <stdlib.h>

    #define NUMCOL 55
    #define NUMROW 35

    void print_2_array(int *x, int num_rows, int num_cols){

    int i, j;
    x = (int *) malloc(num_rows * num_cols * sizeof(int));
    for (i = 0; i < num_rows ; i++)
    for(j = 0; j < num_cols ; j++){
    printf("%d\n", *x);
    x++;//increment the array
    }
    }
    int main(int argc, char *argv[]){
    int *xy;//treat the array as a 1D
    print_2_array(xy, NUMROW, NUMCOL);
    return 0;
    }

Similar Threads

  1. plz koi meri help karega?
    By Akramsoft in forum Mobile phones problems and Help Zone
    Replies: 12
    Last Post: 24th January 2014, 08:05 PM
  2. Koi meri help karega.
    By balach__BH in forum Educational Help
    Replies: 3
    Last Post: 25th June 2013, 08:40 PM
  3. koi meri help karega
    By mr daniyal in forum Ask an Expert
    Replies: 1
    Last Post: 10th July 2010, 11:59 PM
  4. Kia Koi Meri Help Karega??
    By DeadMan in forum Ask an Expert
    Replies: 1
    Last Post: 2nd March 2009, 11:22 AM
  5. Meri Koi Help Karega
    By khan_bhai in forum General Mobile Discussion
    Replies: 1
    Last Post: 21st August 2007, 04:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •