/*
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
Call by Reference
Call by Value
#include <stdio.h>
int f(int* pn)
{
*pn=*pn+5;
}
int main()
{
// int n;
// scanf("%d",&n);
// f(&n);
// printf("%d",n);
// return 0;
int a=5; //정수를저장하는 변수 a선언
printf("a = %d\n",a);
printf("&a = %d\n",&a);
int* pa = &a; // 주소를 저장하는 변수 pa 선언
printf("pa = %d\n",pa);
printf("*pa = %d",*pa);
}
*/
/*
#include <stdio.h>
int myswap(int* a, int* b)
{
int t;
if(*a>*b)
{
t=*a;
*a=*b;
*b=t;
}
}
main()
{
int a, b;
scanf("%d%d", &a, &b);
myswap(&a, &b);
printf("%d %d", a, b);
}
*/
/*
#include <stdio.h>
void s(char* str)
{
printf("%s",str);
}
int main()
{
char str[50];
scanf("%s",str);
s(&str[1]);
//printf("%s",str);
return 0;
}
*/
/*
#include <stdio.h>
int a,b;
void m(char* str)
{
str[b]=0;
printf("%s",str);
}
int main()
{
char str[100];
scanf("%s %d %d",str,&a,&b);
m(&str[a]);
return 0;
자료구조
스택
큐
연결리스트
트리
그래프
..
*/
/*
#include <stdio.h>
int stack[50];
int top=-1;
void push(int data)
{
top++;
stack[top]=data;
}
int pop()
{
return stack[top--];
}
int main()
{
top++;
stack[top]=3;
top++;
stack[top]=5;
printf("%d",stack[top]);
top--;#include <stdio.h>
int a,b;
void m(char* str)
{
str[b]=0;
printf("%s",str);
}
int main()
{
char str[100];
scanf("%s %d %d",str,&a,&b);
m(&str[a]);
return 0;
}
// push(3);
// push(5);
// printf("%d",pop());
}
*/
#include <stdio.h>
int stack;
int top=-1;
void push(int n)
{
top++
stack[top]==n;
}
int pop()
{
return stack[top--];
}
int main()
{
int n,i;
}