online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// Author : P.N.S. Jayanth // Id No. : N190339 // Program : Print all subsets of a given set(including integers, float numbers, strings) #include <stdio.h> void main(){ int size; printf("Enter the size of the set : "); scanf("%d", &size); char setA[size][1000]; for(int i = 0; i < size; i++){ printf("Enter element-%d : ", i + 1); scanf("%s", setA[i]); } printf("Given Set is : {"); for(int i = 0; i < size; i++){ printf("%s, ", setA[i]); } printf("}\n\nSubsets of the given set : \n{}\n"); for(int i = 0; i < size; i++){ for(int j = i+1; j <= size; j++){ printf("{"); for(int k = i; k < j; k++){ printf("%s, ", setA[k]); } printf("}\n"); } } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue