What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
Answer Posted / priya
Logically it is wrong ,because relational operator(==) is
used to check the condition/expression
if(x==6) then the result of y is 1
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Was 2000 a leap year?
What library is sizeof in c?
What is the meaning of typedef struct in c?
How will you write a code for accessing the length of an array without assigning it to another variable?
What is the easiest sorting method to use?
What is multidimensional arrays
Explain why c is faster than c++?
What is pre-emptive data structure and explain it with example?
What is difference between structure and union with example?
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]
Explain the use of 'auto' keyword in c programming?
diff between exptected result and requirement?
When is a void pointer used?
Should I learn data structures in c or python?
How will you divide two numbers in a MACRO?