Explain the term printf() and scanf() used in c language?
No Answer is Posted For this Question
Be the First to Post Answer
Write a program that can show the multiplication table.
What are the back slash character constants or escape sequence charactersavailable in c?
Why are all header files not declared in every c program?
What is the use of bitwise operator?
write a c program that prints all multiples of 3between 1 and 50.
who developed c and why he developed c?
What is #define used for in c?
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.
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
can we declare a variable in different scopes with different data types? answer in detail
Is c a great language, or what?
size maximum allocated by calloc()