int arr[10];

printf("%d\n", sizeof(arr)/sizeof(int)); // 10 출력


2.

int arr[10][20];

printf("%d\n", (sizeof(arr)/sizeof(int)) / (sizeof(arr[0])/sizeof(int))); // 20 출력


Posted by Yann'
,

#include <ctype.h>
#include <stdio.h>
#include <conio.h>

int main(void) {
  char st[40]="hello world";
  int i;
  for (i = 0; st[i]; i++)
  st[itoupper(st[i]);
  printf("The uppercase of String= %s\n", st);
  getch();
  return 0;
}

Posted by Yann'
,
Posted by Yann'
,