how can i print "hello".please consider inverted commas as
well.i want to print on console: "hello"
Answer Posted / anveshbanti
#include<stdio.h>
void main ()
{
printf(""hello"");
}
| Is This Answer Correct ? | 4 Yes | 31 No |
Post New Answer View All Answers
What is a method in c?
Is flag a keyword in c?
How can I change the size of the dynamically allocated array?
When can a far pointer be used?
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
Here is a neat trick for checking whether two strings are equal
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Sir i need notes for structure,functions,pointers in c language can you help me please
What is the difference between class and object in c?
What are the string functions? List some string functions available in c.
When should we use pointers in a c program?
What are unions in c?
What does %c do in c?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
Do you know what are the properties of union in c?