Explain what is wrong with this program statement?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Write a C program where input is: "My name is xyz". output is: "xyz is name My".

1 Answers   TCS,


How do I swap bytes?

0 Answers  


What is union and structure?

0 Answers  


What are the scope of static variables?

0 Answers  


What is a program flowchart and explain how does it help in writing a program?

0 Answers  


What is the difference between fread buffer() and fwrite buffer()?

0 Answers  


what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }

3 Answers  


do ne body have any idea about the salary for the we r going to have interview. yup .. u got it right ..i m talking abt NIC.

1 Answers  


What is the size of enum in bytes?

0 Answers  


how to write a bubble sort program without using temporary variable?

1 Answers   Aricent,


program to find middle element of linklist?

1 Answers   Huawei,


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]

0 Answers   Infosys,


Categories