int a=1,b=2,c=3;
printf("%d,%d",a,b,c);
What is the output?
Answer Posted / sateeshbabu aluri
o/p will be: 1 2 only
3 will be ommited because there is no conversion operator
in printf.
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
How can I read and write comma-delimited text?
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.
Where register variables are stored in c?
What is the difference between the local variable and global variable in c?
Disadvantages of C language.
What is the difference between strcpy() and memcpy() function in c programming?
Is a house a mass structure?
What are multidimensional arrays?
How can you pass an array to a function by value?
Why do we use stdio h and conio h?
What are pointers in C? Give an example where to illustrate their significance.
What is quick sort in c?
write a proram to reverse the string using switch case?
Can we initialize extern variable in c?
What is the role of && operator in a program code?