728x90

 

t3.c

2014. 03. 26 수업 및 과제 


1 포인터 배열

1.1 예제

#include <stdio.h>
unsigned int Mystrlenth_max(char *);

int main()
{
  char * cpStr = "1234A";
  unsigned int uiNum;
  uiNum = Mystrlenth_max(cpStr);
  printf("%d \n",uiNum);
  return 0;
}

unsigned int Mystrlenth_max(char *cpStr)
{
  unsigned int uiCnt=0;
  
  while(0= *cpStr)
  {
    ++cpStr;
    
  }uiCnt = *cpStr;
  
  return uiCnt;  
}
  

'…™업무일지。' 카테고리의 다른 글

[smart]이재우-20140328  (0) 2014.03.28
[smart]이재우-20140327  (0) 2014.03.27
[smart]이재우-20140325  (0) 2014.03.25
[smart]이재우-20140324  (1) 2014.03.24
[smart]이재우-20140321  (0) 2014.03.21