Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication1.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <stdio.h>
- using namespace std;
- int sum(int a[]) {
- return a[0] + a[1];
- }
- int sumaab(int a, int b) {
- return a + b;
- }
- int main(int argc, int b)
- {
- cout << main(2,5) << endl; //Neteisingai
- cout << sumaab(3, 5) << endl; //Teisingai
- //Neteisingai
- int a[] = { 1};
- //Teisingai
- //int a[] = { 1 , 2};
- int suma = sum(a);
- cout << suma;
- cin >> b;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement