What is output of the following program ?
main()
{
i = 1;
printf("%d %d %d\n",i,i++,i++);
}
Answers were Sorted based on User's Feedback
Answer / chandrakala
error: i doesn't declared in a correct way
int i=1
Is This Answer Correct ? | 0 Yes | 0 No |
What are structural members?
How to compare array with pointer in c?
What is sizeof c?
Is it possible to execute code even after the program exits the main() function?
#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}
What are Macros? What are its advantages and disadvantages?
Is int a keyword in c?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
i want to make a program in which we use input having four digits(4321) and get output its reciprocal(1234).
Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV
can i know the source code for reversing a linked list with out using a temporary variable?
write a c program to accept a given integer value and print its value in words
4 Answers Vernalis, Vernalis Systems,