-
Notifications
You must be signed in to change notification settings - Fork 0
/
input_output.cpp
95 lines (80 loc) · 1.41 KB
/
input_output.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#include<stdio.h>
#include<conio.h>
/*main()
{
float f=20, width_f=3; // Missing type specifier - int (width_f should be int)
printf("%*.2f",width_f,f);
getch();
}*/
/*void main()
{
float a=20.123;
int width_a;
printf("Using indirect width specification to display \n");
printf("Enter the field width off:");
scanf("%d", width_a);
printf("%f", width_a, a); //it should be printf("%*f",width_a,a);
getch();
}
*/
/*void main()
{
char s1[8], s2[8];
scanf("%s%s",s1,s2);
printf("Char1= %c, char2= %c", s1[52-'0'], s2[*s2-0[s2]]+4);
getch();
//output => char1 = i, char2 = i;
}
*/
/*void main()
{
char address[30]= " vidhana soudha, %d, Banglore";
printf(address); -> //vidhana Soudha, 38765, Banglore
printf("\n %s",address); -> // viddhana soudha, %d, Banglore
getch();
}
*/
/*void main()
{
int j=100;
printf("%s, %d is a good score ""%s",(j>=100)?"yes":"no", j, (1, ".....OK"), ("No...... ", 1));
getch();
}
*/
/*void main()
{ //doubt
int j, i=-1;
j=i<<8;
printf("%d\t %x\n",i,i);
printf("%d\t %x\n",j,j);
getch();
}
*/
/*void main()
{
int j=100;
j=!j>8 && j<100;
printf("%d\n",j);
printf("\nb" "\bUV" "CE");
getch();
}*/
/*void main()
{
int i;
scanf("%d", printf("%d\n", scanf("%d",&i)));
getch();
}*/
/*void main()
{
static int x=0x8;
printf("%d",getchar(x));
getch();
}*/
/*
#include<math.h>
void main()
{
static int x;
printf("%d",x=(pow(printf("hi\b"), -~x)));
getch();
}*/