void main()
{int i=2;
printf("%d%d%d",i,++i,i++);
getch();
}
Answers were Sorted based on User's Feedback
int x=sizeof(!5.856); What will value of variable x?
char p="data"; printf(p);
How many types of sorting are there in c?
what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }
Write an interactive c program that will encode or decode a line of text. To encode a line of text, proceed as follows: Convert each character, including blank spaces, to its ASCII equivalent. 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. 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 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. Display 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 decoding as was used in encoding.
1 Answers Amazon, CSJM, HCL, Microsoft, TCS, Wipro,
What are the uses of pre-processor directives?
Blade logic interview question. 1st round is a written tests with 15 multiple questions from c and c++. All are simple basic question. Like int main () { Int i=65; Return printf(ā%cā, i); } 2nd and 3rd round is technical interview. The position for which I was interview was core UNIX and c. Yes it is for system programming. The company has product name blade server. For their server they are creating their own command for their purpose. Example cd command. We can implement it in a c program by using the chdir() function. So the question asks related to PID, fork, pipe, shared memory, signal. Write a program in c which will act as cp command.
1 Answers BladeLogic, Infosys,
To find whether a number is even or odd without using any conditional operator??
12 Answers College School Exams Tests, IBM,
how to sort two array of characters and make a new array of characters.
When should volatile modifier be used?
WHAT IS LOW LEVEL LANGUAGE?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?