#include <iostream.h> #include <conio.h> void main() { void sum(int []={5,8}); sum(); getch(); } void sum(int x[]) { for(int i=0;i<=2;i++) cout<<x[i]; }
#include <iostream> #include <conio.h> using namespace std; void sum(int x[]) { for(int i=0;i<2;i++) cout<<x[i]; } void main() { int values[] = {5,8}; sum(values); getch(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)