source code for delete data in array for c
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }
4 Answers Google, HCL, Quick Heal, WTF,
Write a routine that prints out a 2-D array in spiral order
main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); }
main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); }
int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
9 Answers CSC, GoDB Tech, IBM,
program to find magic aquare using array
main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }
How to return multiple values from a function?
print numbers till we want without using loops or condition statements like specifically(for,do while, while swiches, if etc)!
How to reverse a String without using C functions ?
33 Answers Matrix, TCS, Wipro,