Responsive Ads Here

Wednesday, February 4, 2015

array passing as a perameter

 

array passing a

s a perameter

 
#include<stdio.h>
// void abc(int arr[])
//{
//    printf("%d\n",arr[3]);
//}
int abc(int arr[][5])
        {
            printf("%d\n",arr[0][0]);
        }
int main()
{
    int arr[100]={10,2,3,5,6};
    int arrr[10][5]={10,2,3,5,6};
    abc(arr);
 
}

No comments:

Post a Comment

php4

<?php    // Start the session  session_start();  ?>  <!DOCTYPE html>  <html>  <head>       <link rel=&q...