#include<stdio.h>
int main()
{
int x=2,y;
y=++x*x++*++x;
printf("%d",y);
}
Output for this program is 64.
can you explain how this output is come??
main() { int i = 257; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }
main() { int i, n; char *x = “girl”; n = strlen(x); *x = x[n]; for(i=0; i<n; ++i) { printf(“%s\n”,x); x++; } }
int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }
to remove the repeated cahracter from the given caracter array. i.e.., if the input is SSAD output should of SAD
Derive expression for converting RGB color parameters to HSV values
main() { int i=_l_abc(10); printf("%d\n",--i); } int _l_abc(int i) { return(i++); }
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
main() { printf("%x",-1<<4); }
#include<stdio.h> main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }
How we print the table of 2 using for loop in c programing?
main() { char not; not=!2; printf("%d",not); }
how to print 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1 using any loop(for or while) only once(only 1 loop) and maximum 2 variables using C.
19 Answers Cap Gemini, Infosys,