Which control loop is recommended if you have to execute set of statements for fixed number of times?


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

Post New Answer

More C Interview Questions

#include<stdio.h> main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3)); }

4 Answers   HCL,


what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }

2 Answers   Google,


What is hungarian notation? Is it worthwhile?

0 Answers  


What is the most efficient way to count the number of bits which are set in a value?

4 Answers  


Stimulate calculator using Switch-case-default statement for two numbers

0 Answers   Wipro,






Write a program to print the following series 2 5 11 17 23 31 41 47 59 ...

2 Answers  


What is array in c with example?

0 Answers  


Explain how do you print only part of a string?

0 Answers  


What is the difference between variable declaration and variable definition in c?

0 Answers  


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,


When should I declare a function?

0 Answers  


how to swap 2 numbers within a single statement?

4 Answers  


Categories