Translate

Labels

Saturday 13 July 2013

PASSING 2-D ARRAY TO A FUNCTION

There are three ways in which we can pass a 2-D array to a function.these are illustrated in the following program.

main()
{
int a[3][4]={1,2,3,4,5,6,7,8,9,8,7,6};
clrscr();
display(a,3,4);
show(a,3,4);
print(a,3,4);
}


Tuesday 2 July 2013

GET IP ADDRESS USING C PROGRAM

#include<stdlib.h>
int main()
{
system("C:\\windows\\system32\\ipconfig");
return 0;
}