char ch=10;printf("%d",ch);what is the output
Answer Posted / devvv
this program is gonna give output 10.coz ascii values are
assigned to only 0....9.when we execute printf("%
c",ch);.........the output screen will be blank.
Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Write a c program to build a heap method using Pointer to function and pointer to structure ?
diff between exptected result and requirement?
What is #include stdlib h?
What does stand for?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Explain how do you generate random numbers in c?
How can I do serial ("comm") port I/O?
What is the usage of the pointer in c?
State two uses of pointers 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.
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What is meant by high-order and low-order bytes?