52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2?
Answer Posted / anshukumarsrivastava.
a program to print a string i am in allahabad without using
a semicolon.
#include<stdio.h>
#include<conio.h>
void main()
{
if(printf(" i am in allahabad"))
getch();
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is structure pointer in c?
How do we open a binary file in Read/Write mode in C?
What happens if header file is included twice?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Can a function argument have default value?
Can we use any name in place of argv and argc as command line arguments?
What are the 5 elements of structure?
Why are all header files not declared in every c program?
Is sizeof a keyword in c?
What is the use of a semicolon (;) at the end of every program statement?
What are c preprocessors?
What is wrong with this program statement? void = 10;
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]
What are static variables in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?