a memory of 20 bytes is allocated to a string declared as
char *s then the following two statements are executed:
s="Etrance"
l=strlen(s);
what is the value of l ?
a.20
b.8
c.9
d.21
Answer Posted / sivasankar.a
the answer is c)9 because of "etrance"this word lengh is 9.
| Is This Answer Correct ? | 3 Yes | 19 No |
Post New Answer View All Answers
how to find anagram without using string functions using only loops in c programming
Is it better to bitshift a value than to multiply by 2?
What is the correct code to have following output in c using nested for loop?
What is the use of clrscr?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Mention four important string handling functions in c languages .
what is the difference between 123 and 0123 in c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What is time null in c?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
Hi can anyone tell what is a start up code?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What is const keyword in c?
What is null pointer in c?
Why c is procedure oriented?