what is the c source code for the below output?
10 10 10 10 10 10 10 10 10 10
9
9
7 6 6 6 6 6 6 9
7 5 9
7 3 2 2 5 9
7 3 1 5 9
7 3 5 9
7 4 4 4 4 5 9
7 8 8 8 8 8 8 8 8 9


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

Post New Answer

More C Interview Questions

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,


What is %lu in c?

0 Answers  


what does exit() do?

3 Answers   Cadence,


How can you increase the allowable number of simultaneously open files?

0 Answers  


What is string constants?

0 Answers  






In a switch statement, explain what will happen if a break statement is omitted?

0 Answers  


What are identifiers and keywords in c?

0 Answers  


Explain what is the most efficient way to store flag values?

0 Answers  


which is conditional construct a) if statement b) switch statement c) while/for d) goto

0 Answers  


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

0 Answers  


Without using main fn and semicolon,print remainder for a given number in C language

2 Answers  


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

0 Answers  


Categories