what will be the output of this program........
main()
{
int a=2,b=4,c=6;
printf("%d");
}
why it gives the value of third variable.
Answers were Sorted based on User's Feedback
Answer / srsabariselvan
6
because it'll print the last garbage value stored.
Is This Answer Correct ? | 3 Yes | 1 No |
Input any no. and print all the the numbers that comes before it like this for e.g input = 4 0 01 012 0123 01234 plz answer it 2day
How to establish connection with oracle database software from c language?
How do you determine if a string is a palindrome?
can we have joblib in a proc ?
What is #include in c?
void main() {int i=2; printf("%d%d%d",i,++i,i++); getch(); }
differnce between do and do while
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.
Write a program that takes three variables(a,b,c) in as separate parameters and rotates the values stored so that value a goes to b,b,to c and c to a
Is a pointer a kind of array?
write a program of bubble sort using pointer?
please give code for this 1 2 4 7 11 16