print numbers till we want without using loops or condition
statements like specifically(for,do while, while swiches,
if etc)!
Answers were Sorted based on User's Feedback
Answer / vijay
main()
{
static int i;
printf("%d \n",i++);
main();
}
| Is This Answer Correct ? | 3 Yes | 19 No |
what is oop?
main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); }
#define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }
main() { int i=10; i=!i>14; Printf ("i=%d",i); }
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
How to palindrom string in c language?
void main() { char ch; for(ch=0;ch<=127;ch++) printf(ā%c %d \nā, ch, ch); }
Is it possible to type a name in command line without ant quotes?
which function is used to clear the buffer stream on gcc? for example: I wrote following code on gcc #include<stdio.h> int main(void) { char ch; int a,b; printf("\nenter two numbers:\t"); scanf("%d%d",&a,&b); printf("enter number is %d and %d",a,b); printf("\nentercharacter:\t"); scanf("%c",&ch); printf("enter character is %c",ch); return 0; } in above progarm ch could not be scan. why?plz tell me solution.
1 o 1 1 0 1 0 1 0 1 1 0 1 0 1 how to design this function format in c-language ?
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ā¦ā¦..a[49][49]). Finally, print out how many zeros and ones in the diagonal.
PROG. TO PRODUCE 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1