11. |
If the two strings are identical, then strcmp() function returns _____. ( જો બે સ્ટ્રીંગ સમાન હોય, તો strcmp () ફંક્શન ____ રીટર્ન કરે છે ).
|
||||||||
Answer:
Option (b) |
12. |
What is the output of given substring function? s1 = "computer", cursor = 4, num = 3, write(XSUBSTR(s1, 4, 3)) નીચેના આપેલ substring ફંકશનનું આઉટપુટ શું છે? s1 = "computer", cursor = 4, num = 3, write(XSUBSTR(s1, 4, 3))
|
||||||||
Answer:
Option (a) |
13. |
State TRUE OR FALSE : String concat operation always adds NULL character at end. (આપેલ વિધાન સાચું છે કે ખોટું : સ્ટ્રીંગ કોન્કેટ ઓપેરશન સ્ટ્રીંગને અંતે NULL કેરેક્ટર ઉમેરે છે.)
|
||||
Answer:
Option (a) |
14. |
What will be the output of given code? (નીચે આપેલ પ્રોગ્રામનું આઉટપુટ શું આવશે?)
|
||||||||
Answer:
Option (b) |
15. |
What will be the output of given code? (નીચે આપેલ કોડનું આઉટપુટ શું આવશે?)
|
||||||||
Answer:
Option (b) |
16. |
What will be the output of given code? (નીચે આપેલ કોડનું આઉટપુટ શું આવશે?)
|
||||||||
Answer:
Option (d) |
17. |
What will be the output of given code? int main() { char s[20], s1[20]; printf("enter string"); scanf("%s",s); printf("%s", s); scanf("%s",s1); printf("%s", s1); } Input : s : HELLO WORLD s1 : Welcome નીચે આપેલ કોડનું આઉટપુટ શું આવશે? int main() { char s[20], s1[20]; printf("enter string"); scanf("%s",s); printf("%s", s); scanf("%s",s1); printf("%s", s1); } Input : s : HELLO WORLD s1 : Welcome
|
||||||||
Answer:
Option (c) |