Strings: Week: 4 Duration: 60 Mins
Strings: Week: 4 Duration: 60 Mins
4. Strings
Week : 4 Duration : 60 mins
24
‘C’ & ‘C’ only Sona Placement & Training Cell
25
‘C’ & ‘C’ only Sona Placement & Training Cell
15. How will u print TATA alone from TATA POWER using string copy
and concate commands in C?
18.What is a string?
a) array of characters without /0; b) array of characters ending with /0;
26
‘C’ & ‘C’ only Sona Placement & Training Cell
4. Assignment
27
‘C’ & ‘C’ only Sona Placement & Training Cell
{ case 1:
printf(“%dand %c”,p.,q);
printf(“%cand%d”,p,q); }
}
a) A AND 65 b) 65 AND A
c) A and 65 d) 65 and A
65 and A A and 65
28
‘C’ & ‘C’ only Sona Placement & Training Cell
29