How can i find first 5 natural Numbers without using any
loop in c language????????
Answers were Sorted based on User's Feedback
Answer / vaishno
main()
{
int i=1;
printt:
printf("%d\n",i++);
if(i<=5)
goto printt;
getch();
}
| Is This Answer Correct ? | 16 Yes | 5 No |
Answer / i.c.jacobpaul
main()
{
int i=1;
printt:
printf("%d\n",i);
i++;
if(i<=5)
goto printt;
getch();
}
| Is This Answer Correct ? | 1 Yes | 6 No |
main() { int i=5,j=6,z; printf("%d",i+++j); }
source code for delete data in array for c
main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf(" %d",i); } void pascal f(integer :i,integer:j,integer :k) { write(i,j,k); }
main() { while (strcmp(“some”,”some\0”)) printf(“Strings are not equal\n”); }
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
void pascal f(int i,int j,int k) { printf(“%d %d %d”,i, j, k); } void cdecl f(int i,int j,int k) { printf(“%d %d %d”,i, j, k); } main() { int i=10; f(i++,i++,i++); printf(" %d\n",i); i=10; f(i++,i++,i++); printf(" %d",i); }
void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }
how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..!
#include <stdio.h> #define a 10 main() { #define a 50 printf("%d",a); }
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?
why is printf("%d %d %d",i++,--i,i--);
Cau u say the output....?