int a=1;
printf("%d %d %d",a++,a++,a);
need o/p in 'c' and what explanation too
#include <stdio.h> int main(void) { int a=4, b=2; a=b<<a+b>>2 ; printf("%d",a); return 0; }
main() { void swap(); int x=10,y=8; swap(&x,&y); printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; }
typedef struct error{int warning, error, exception;}error; main() { error g1; g1.error =1; printf("%d",g1.error); }
What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }
main() { int i=5,j=6,z; printf("%d",i+++j); }
main( ) { char *q; int j; for (j=0; j<3; j++) scanf(“%s” ,(q+j)); for (j=0; j<3; j++) printf(“%c” ,*(q+j)); for (j=0; j<3; j++) printf(“%s” ,(q+j)); }
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
How to access command-line arguments?
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
Which version do you prefer of the following two, 1) printf(“%s”,str); // or the more curt one 2) printf(str);