Quick actions

cmd+k|ctrl+k

Navigation

Languages

ArrayPractice-1

Snippet info

Language

Cpp

Visibility

public

Author

kodlikejamesz

Created

2024-04-10T19:50:03.271023Z

Updated

2024-04-10T19:59:23.384951Z

#include <iostream> // C plus plus
#include<stdio.h> // C languange
using namespace std;

int main() {
    
    int n;
    cout<<"Enter Size";
    cin>>n;
    int A[n];
    A[0]=2;
    int B[] = {};
    // int A[5];
    // A[0] = 12;
    // A[1] = 15;
    // A[2] = 25;
    // // A[3] 
    for(int x:A){
        cout<<x<<endl;
    }
    
//   cout<<sizeof(A)<<endl;
//    cout<<sizeof(B)<<endl;
//    cout<<A[1]<<endl;
//    printf("%d\n", A[2] + A[4]);
    
    return 0;
}
INFO