G

@godks

397p 예제

C
5 months ago
#include <stdio.h> void SSF(void) { printf("I'm so simple"); } int main() { int num=20; void * ptr;

397p 예제

C
5 months ago
#include <stdio.h> int Wif(int age1, int age2, int (*cmp)(int n1, int n2)) { return cmp(age1, age2); } int Of(int age1, int age2) { if(age1>age2)

394p 예제

C
5 months ago
#include <stdio.h> void Si(int n1, int n2) { printf("%d + %d = %d \n", n1, n2 ,n1+n2); } void So(char * str) { printf("%s \n", str);

376p 예제

C
6 months ago
#include <stdio.h> int main() { int arr1[3][2]; int arr2[2][3]; printf("arr1: %p \n", arr1); printf("arr1+1: %p \n", arr1+1); printf("arr1+2: %p \n", arr1+2);

374p 예제

C
6 months ago
#include <stdio.h> int main() { int arr2d[3][3]; printf("%d \n", arr2d); printf("%d \n", arr2d[0]); printf("%d \n\n", &arr2d[0][0]); printf("%d \n", arr2d[1]); printf("%d \n\n", &arr2d[1][0]);

368p 문제

C
6 months ago
#include <stdio.h> void mami(int **p1, int **p2, int *b) { *p1 = b; *p2 = b; int y=*b, t=*b; for(int i=0; i<4; i++) { if(y<*(b+1)) {

365p 예제

C
6 months ago
#include <stdio.h> int main() { int num1=10, num2=20, num3=30; int *ptr1=&num1; int *ptr2=&num2; int *ptr3=&num3; int * ptrarr[]={ptr1, ptr2, ptr3}; int **dptr=ptrarr;

363p 예제

C
6 months ago
#include <stdio.h> void sw(int **dp1, int **dp2) { int *temp = *dp1; *dp1 = *dp2; *dp2 = temp; } int main() { int num1=10, num2=20;

359p 예제

C
6 months ago
#include <stdio.h> int main() { double num= 3.14; double *ptr = &num; double **dptr = &ptr; double *ptr2; printf("%9p %9p \n", ptr, *dptr); printf("%9g %9g \n", num, **dptr);

352p 예제

C
6 months ago
#include <stdio.h> int main() { int mean=0, i, j; int record[3][3][2]={ { {70, 80}, {94, 90}, {70, 85} },

351p 예제

C
6 months ago
#include <stdio.h> int main() { int arr1[2][3][4]; double arr2[5][5][5]; printf("높이2, 세로3, 가로4 int형 배열: %d \n", sizeof(arr1)); printf("높이5, 세로5, 가로5 double형 배열: %d \n", sizeof(arr2)); return 0; }

342p 예제

C
6 months ago
#include <stdio.h> int main() { int v[4][2]; int p, i ,j; for(j=0; j<4; j++) { for(i=0; i<2; i++) {

221p 문제2

C
6 months ago
#include <stdio.h> float cf(float a) { int y; y=(a*1.8)+32; return y; } float fc(float b)

320p 문제 1

C
6 months ago
#include <stdio.h> int cv(/*값*/ int y) //Call-by-Value { y=y*y; return y; } void cr(/*주소값*/ int * a) //Call-by-Reference {

313p 예제

C
7 months ago
#include <stdio.h> void show(int * param, int len) { int i; for(i=0; i<len; i++) { printf("%d ", param[i]); } printf("\n");

305p 예제

C
7 months ago
#include <stdio.h> int main() { char * a[3]={"simple", "string", "array"}; printf("%s \n",a[0]); printf("%s \n",a[1]); printf("%s \n",a[2]); return 0; }

329p 도전 4 (푸는 중)

C
7 months ago
#include <stdio.h> int main() { int y=0; char a[100]; scanf("%s", a); if(a[0]==a[2]) {

328p 도전 1

C
7 months ago
#include <stdio.h> int p(int *b) { for(int f=0; f<10; f++) { if(b[f]%2==0) { printf("%d \n",b[f]); }

329p 도전 3

C
7 months ago
#include <stdio.h> int main() { int b; int y=0; int x=9; int a[10]; for(int f=0; f<10; f++) { scanf("%d", &b);

300p 문제4

C
7 months ago
#include <stdio.h> int main() { int y=0; int a[6]; for(int f=0; f<6; f++) { a[f]=f+1; }