Question

Please answer in terms of C. What is the result of calling each of the following...

Please answer in terms of C. What is the result of calling each of the following functions?

a. StringLength(“ABCDE”)

b. StringLength(““)

c. StringLength(“\a”)

d. IthChar(“ABC”, 2)

e. Concat(“12”, ”.00”)

f. CharToString(‘2’)

g. SubString(“ABCDE”, 0,3)

h. SubString(“ABCDE”, 4,1)

i. SubString(“ABCDE”, 3,9)

j. SubString(“ABCDE”,3,3)

0 0
Add a comment Improve this question Transcribed image text
Answer #1
a. StringLength(“ABCDE”)
5

b. StringLength(““)
0

c. StringLength(“\a”)
1

d. IthChar(“ABC”, 2)
C

e. Concat(“12”, ”.00”)
12.00

f. CharToString(‘2’)
"2"

g. SubString(“ABCDE”, 0,3)
ABC

h. SubString(“ABCDE”, 4,1)
""

i. SubString(“ABCDE”, 3,9)
"BE"

j. SubString(“ABCDE”,3,3)
""
Add a comment
Know the answer?
Add Answer to:
Please answer in terms of C. What is the result of calling each of the following...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please define the following terms and acronyms, a. Process Variation, b. Design Corners, c. Oxide Wear...

    Please define the following terms and acronyms, a. Process Variation, b. Design Corners, c. Oxide Wear Out, d. Hot Carriers, e. Electromigration, f. Soft Errors, g. Latchup, h. ITRS, i. IRDS, j. EETIMES

  • QUESTION 1 Match the following terms with their definitions.       -       A.   ...

    QUESTION 1 Match the following terms with their definitions.       -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.    Nonpolar, does not interact with water       -       A.       B.       C.       D.       E.       F.       G.       H.   ...

  • 7. We list several pairs of functions f and g. For each pair, please do the...

    7. We list several pairs of functions f and g. For each pair, please do the following: Determine which of go f and fog is defined, and find the resulting function(s) in case if they are defined. In case both are defined, determine whether or not go f = fog. (a) f = {(1,2), (2,3), (3, 4)} and g = {(2,1),(3,1),(4,1)). (b) f = {(1,4), (2, 2), (3, 3), (4,1)} and g = {(1, 1), (2, 1), (3, 4),(4,4)}. (c)...

  • For each item, select the proper statistical term. Terms are only used once and each item...

    For each item, select the proper statistical term. Terms are only used once and each item has only one correct answer.       -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.       O.       P.    Hanna, CPA, identified the item in which...

  • 1) Implement each side with gates, that is a block diagram/schematic a+(b+c) = (a+b)+c a(b+c) =...

    1) Implement each side with gates, that is a block diagram/schematic a+(b+c) = (a+b)+c a(b+c) = ab + ac 2) Make a truth table for each of the functions below and identify where each term comes from in the truth table a. F=X’Y+Y’Z’+XYZ b. G=XY+(X’+Z)(Y+Z’) c. H=WX+XY’+WX’Z+XYZ’+W’XY’ 3) For the expression F = A’B’C + ABC + ABC’ How many literals are there ___________ How many terms are there ___________ 4) F(a,b,c,d) = m(0,1,4,7,12) Find the canonical sum (which is...

  • C programming Show the result of evaluating each of the following expressions. (a) (4 * 3)...

    C programming Show the result of evaluating each of the following expressions. (a) (4 * 3) == (3 * 4) (b) 4 * (3 == 3) * 4 (e) (('h' + 'i') && '\0') (f) (13 < 7 || 7 > = 13) || (13 < 7 && 7 > = 13) || (7 < 13 && 13 > = 7) (g) (13 < 7 || 7 > = 13) && (13 < 7 && 7 > = 13) &&...

  • Please answer the following questions in terms of C syntax: [q9_3]: Fill in the blanks in...

    Please answer the following questions in terms of C syntax: [q9_3]: Fill in the blanks in each of the following: a) Computers store large amounts of data on secondary storage devices as __________. b) A(n) __________ is composed of several fields. c) To facilitate the retrieval of specific records from a file, one field in each record is chosen as a(n) __________. d) A group of related characters that conveys meaning is called a(n) __________. e) The file pointers for...

  • JAVA PROGRAMMING I want to make sure I have learned the compareto statements correct and other...

    JAVA PROGRAMMING I want to make sure I have learned the compareto statements correct and other things. This was on my lecture slide today and I don't understand the compare to regarding how they get values for the strings. Please answer the following. Suppose that s1, s2, and s3 are three strings, given as follows String s1 = "Welcome to Java". String s2 = "Programming is fun". String s3- "Welcome to Java" hat are the results of the following expressions?...

  • Problem 5(4pts): For the functions f(x) and g(x) in problem 4, answer the following questions about...

    Problem 5(4pts): For the functions f(x) and g(x) in problem 4, answer the following questions about the end behavior of these functions. As 2 + +00, f(x) + ? As x + -oo, f(x) + ? As 2 + +00, g(x) +? As I + -00, g(x) + ? f(x) = e? g(x) =(75)

  • Match the following structures/molecules to the appropriate label. Pick the MOST appropriate/specific answer.       -...

    Match the following structures/molecules to the appropriate label. Pick the MOST appropriate/specific answer.       -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.    L-glycine and D-glycine       -       A.       B.       C.       D.       E.       F.       G.       H.       I....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT