int i;
main(){
int t;
for ( t=4;scanf("%d",&i)-t;printf("%d\n",i))
printf("%d--",t--);
}
// If the inputs are 0,1,2,3 find the o/p
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
4--0
3--1
2--2
Explanation:
Let us assume some x= scanf("%d",&i)-t the values
during execution
will be,
t i x
4 0 -4
3 1 -2
2 2 0
Is This Answer Correct ? | 5 Yes | 5 No |
What are the following notations of defining functions known as? i. int abc(int a,float b) { /* some code */ } ii. int abc(a,b) int a; float b; { /* some code*/ }
To reverse an entire text file into another text file.... get d file names in cmd line
main() { char a[4]="HELL"; printf("%s",a); }
main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above
#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
int aaa() {printf(“Hi”);} int bbb(){printf(“hello”);} iny ccc(){printf(“bye”);} main() { int ( * ptr[3]) (); ptr[0] = aaa; ptr[1] = bbb; ptr[2] =ccc; ptr[2](); }
Write a program to receive an integer and find it's octal equivalent. How can i do with using while loop.
main( ) { void *vp; char ch = ‘g’, *cp = “goofy”; int j = 20; vp = &ch; printf(“%c”, *(char *)vp); vp = &j; printf(“%d”,*(int *)vp); vp = cp; printf(“%s”,(char *)vp + 3); }
could you please send the program code for multiplying sparse matrix in c????
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
#define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }