what is the value of 'i'?

i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")

Answer Posted / aditya

i=strlen("Blue")+strlen("People")/strlen("Red")-strlen
("green")
it is evaluated as
strlen("People")/strlen("Red")
6-4 as 2 then
strlen("Blue")+2
4+2 as 6 then
6-strlen("green")
6-5 as 1

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a far pointer in c?

584


praagnovation

1766


What is the difference between char array and char pointer?

519


What is indirection? How many levels of pointers can you have?

650


What are header files in c?

604






explain what are actual arguments?

624


How can I do serial ("comm") port I/O?

676


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15025


What do mean by network ?

646


What is the purpose of void pointer?

586


What is file in c language?

566


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

1946


Does c have circular shift operators?

710


In C language what is a 'dangling pointer'?

626


What are # preprocessor operator in c?

618