Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Commit 0a9f952

Browse files
committed
staged
1 parent 7aa5e35 commit 0a9f952

8 files changed

Lines changed: 107 additions & 7 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
#include <stdio.h>
3+
#include <stdlib.h>
4+
5+
int main()
6+
{
7+
/*
8+
int num1, num2, num3;
9+
scanf("%2d %5d",&num1,&num2);
10+
scanf("%2d",&num3);
11+
printf("%d %d %d",num1,num2,num3);
12+
*/
13+
/*
14+
float x = 1.1;
15+
double y = 1.1;
16+
if(x==y){
17+
printf("lol");
18+
}
19+
else{
20+
printf("lmao");
21+
}
22+
*/
23+
/*
24+
static int var = 5;
25+
printf("%d",var--);
26+
if(var)
27+
main();
28+
*/
29+
int c[] = {2.8,3.4,4,6.7,5};
30+
int j,*p=c,*q=c;
31+
for(j=0;j<5;j++)
32+
{
33+
printf("%d",*c);
34+
++q;
35+
//printf("%d",q);
36+
}
37+
printf("\n");
38+
for(j=0;j<5;j++)
39+
{
40+
printf("%d",*p);
41+
++p;
42+
}
43+
return 0;
44+
}
45+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
#include <stdio.h>
3+
#include <stdlib.h>
4+
//#define clrscr() 100
5+
6+
7+
/*
8+
int sum(int a,int b)
9+
{
10+
return (a+b);
11+
}
12+
*/
13+
/*
14+
int main()
15+
{
16+
//printf("sizeof int = %d",sizeof(int));
17+
/*
18+
int arr[] = {0,1,2,3,4};
19+
int *ptr,i;
20+
for(ptr=arr+4;ptr>=arr;ptr--)
21+
printf("%d ",arr[ptr-arr]);
22+
//int x=2,y=0,n;
23+
//clrscr();
24+
//printf("%d\n",clrscr());
25+
/*
26+
float f=1;
27+
switch(f)
28+
{
29+
case 1.0:
30+
printf("yes\n");
31+
break;
32+
default:
33+
printf("default\n");
34+
}
35+
/*
36+
int _3a;
37+
_3a = _3a+1;
38+
printf("3_a = %d",_3a);
39+
x = 1;
40+
y = 1;
41+
if(n>0)
42+
x=x+1;
43+
y=y-1;
44+
*/
45+
/*
46+
//int z = (y++)?y==1&&x:0;
47+
//printf("x = %i, y = %d",x,y);
48+
//printf("%d\n",z);
49+
return 0;
50+
}
51+
*/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# depslib dependency file v1.0
2+
1557343042 source:/home/jimutbp/Desktop/GIT/prog_backups/1st_and_2nd_Sem_c_backup/C/BHU/2018/q1.c
3+
<stdio.h>
4+
<stdlib.h>
5+
6+
1557338074 source:/home/jimutbp/Desktop/GIT/prog_backups/1st_and_2nd_Sem_c_backup/C/BHU/main.c
7+
8+
1557343011 source:/home/jimutbp/Desktop/GIT/prog_backups/1st_and_2nd_Sem_c_backup/C/BHU/2017/q1.c
9+
<stdio.h>
10+
<stdlib.h>
11+
20.3 KB
Binary file not shown.
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
#include <stdio.h>
2-
#include <stdlib.h>
31

4-
int main()
5-
{
6-
printf("Hello world!\n");
7-
return 0;
8-
}
5.39 KB
Binary file not shown.
4.02 KB
Binary file not shown.
1.23 KB
Binary file not shown.

0 commit comments

Comments
 (0)