What will be the output of
x++ + ++x?
Answer Posted / dhanashree
if x=1 then output will be 4
Is This Answer Correct ? | 41 Yes | 16 No |
Post New Answer View All Answers
What is a void * in c?
Is c weakly typed?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
What the advantages of using Unions?
Which function in C can be used to append a string to another string?
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.
What is the difference between struct and union in C?
Explain how can you avoid including a header more than once?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
How can I insert or delete a line (or record) in the middle of a file?
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!+....
Explain what is wrong with this program statement?
What are global variables?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
Define recursion in c.