G

@godks

122p 예제

C
2 hours ago
#include <stdio.h> int main() { printf("literal int size: %d \n", sizeof(7)); printf("literal double size: %d \n", sizeof(7.14)); printf("literal char size: %d \n", sizeof('A')); return 0; }

491p 예제

C
1 month ago
#include <stdio.h> typedef union ubox { int mem1; int mem2; double mem3; } UBox; int main(void) { UBox ubx;

489p 예제

C
1 month ago
#include <stdio.h> typedef struct sbox { int mem1; int mem2; double mem3; } SBox; typedef union ubox { int mem1;

정렬기준

C
1 month ago
#include <stdio.h> #include <string.h> typedef struct sc { int y; int m; int d; } S;

퀵 정렬

C
2 months ago
#include <stdio.h> /* void Swap(int *a, int *b) { int temp temp = a; a = b; b = temp; arr[a] = arr[b]; arr[b] = temp;

481p 예제

C
2 months ago
#include <stdio.h> typedef struct point { int xpos; int ypos; }Point; void OrgSymTrans(Point * ptr) {

480p 예제

C
2 months ago
#include <stdio.h> #include <math.h> typedef struct person { char name[20]; char phoneNum[20]; int age; } Person;

478p 예제

C
2 months ago
#include <stdio.h> #include <math.h> typedef struct point { int xpos; int ypos; }Point; void ShowPosition(Point pos)

스케줄

C
2 months ago
#include <stdio.h> #include <string.h> typedef struct sc { int y; int m; int d; char a[100]; } S;

데이터 재정렬문제(GPT)

C
3 months ago
#include <stdio.h> #include <stdlib.h> typedef struct aa { int a1; // 값 int a2; // 원래 인덱스 } A; // 구조체 스왑

468p 예제

C
3 months ago
#include <stdio.h> #include <math.h> struct point { int xpos; int ypos; }; struct person

465p 예제

C
3 months ago
#include <stdio.h> #include <math.h> struct point { int xpos; int ypos; }; struct circle

투표

C
3 months ago
#include <stdio.h> struct h { } int main() { int n; int a, b, c;

440p 예제

C
4 months ago
#include <stdio.h> #include <string.h> int main() { char str1[20]="First~"; char str2[20]="Second"; char str3[20]="Simple num: "; char str4[20]="1234567890";

437p 예제

C
4 months ago
#include <stdio.h> #include <string.h> int main() { char str1[20]="1234567890"; char str2[20]; char str3[5]; strcpy(str2, str1); puts(str2);

435p 예제

C
4 months ago
#include <stdio.h> #include <string.h> void R(char str[]) { int len=strlen(str); str[len-1]=0; } int main() {

426p 예제

C
4 months ago
#include <stdio.h> #include <string.h> int main() { char str[7]; int i; for(i=0; i<3; i++) { fgets(str, sizeof(str), stdin);

423p 문제

C
5 months ago
#include <stdio.h> int main() { int ch1; ch1=getchar(); if(ch1>96 && ch1<123) { putchar(ch1-32); }

420p 예제

C
5 months ago
#include <stdio.h> int main() { int ch1, ch2; ch1=getchar(); ch2=fgetc(stdin); putchar(ch1); fputc(ch2, stdout);

401p 예제

C
5 months ago
#include <stdio.h> #include <string.h> void SAS(int argc, char * argv[]) { int i; for(i=0; i<argc; i++) printf("%s \n", argv[i]); }