what is the output of the following program?
main()
{
int c[]={2,8,3,4,4,6,7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++)
{
printf("%d",*c);
++q;
}
for(j=0;j<5;j++)
{
printf("%d",*p);
++p;
}
}
Answer Posted / praveen
2222228344
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
Explain how can I convert a number to a string?
When should the const modifier be used?
How can a number be converted to a string?
What is the best style for code layout in c?
Write a program on swapping (100, 50)
What will be your course of action for a push operation?
Why doesnt that code work?
Explain what are global variables and explain how do you declare them?
Which built-in library function can be used to match a patter from the string?
What are pointers?
Can we change the value of constant variable in c?
Do you have any idea about the use of "auto" keyword?
Is malloc memset faster than calloc?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.