fork download
  1. #include <stdio.h>
  2.  
  3. int main () {
  4.  
  5. char array [5] = {'H', 'e', 'l', 'l', 'o'};
  6. char arr[] = "Hello";
  7. int nums [3] = {23, 56, 12};
  8. nums [2] = 555;
  9. printf ("element - %d\n", nums[2]);
  10.  
  11. for (int i = 0; i < 5; i++) {
  12. printf ("%c", arr[i]);
  13. }
  14.  
  15. printf ("\n");
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 4204KB
stdin
23
12.2
stdout
element - 555
Hello