main()
{
int i =10, j = 20;
clrscr();
printf("%d, %d, ", j-- , --i);
printf("%d, %d ", j++ , ++i);
}
a. 20, 10, 20, 10
b. 20, 9, 20, 10
c. 20, 9, 19, 10
d. 19, 9, 20, 10
Answers were Sorted based on User's Feedback
Answer / ramya
for right increment the value not change.
for the left increment the value change.
so j++=20,--i=9,j++=20,++i=10.
Is This Answer Correct ? | 0 Yes | 1 No |
Write a program to receive an integer and find its octal equivalent?
What is the problem with the following code segment? while ((fgets(receiving array,50,file_ptr)) != EOF) ;
To reverse an entire text file into another text file.... get d file names in cmd line
#define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }
Print an integer using only putchar. Try doing it without using extra storage.
main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }
Display the time of the system and display the right time of the other country
int i=10; main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); }
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }
How can i find first 5 natural Numbers without using any loop in c language????????
struct Foo { char *pName; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); strcpy(obj->pName,"Your Name"); printf("%s", obj->pName); } a. Your Name b. compile error c. Name d. Runtime error
#include"math.h" void main() { printf("Hi everybody"); } if <stdio.h> will be included then this program will must compile, but as we know that when we include a header file in "" then any system defined function find its defination from all the directrives. So is this code of segment will compile? If no then why?