writte a c-programm to display smill paces
Answers were Sorted based on User's Feedback
Answer / anand_cool
#include<stdio.h>
void main()
{
int n=1;
for(;;)
{
printf("%c",n);
}
}
Is This Answer Correct ? | 7 Yes | 1 No |
#incude<stdio.h>
void main()
{
int ricky_dobriyal=1;
while(1)
{
printf("%c",ricky_dobriyal);
}
}
Is This Answer Correct ? | 2 Yes | 1 No |
How can you relate the function with the structure? Explain with an appropriate example.
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
What is the output for the program given below typedef enum errorType{warning, error, exception,}error; main() { error g1; g1=1; printf("%d",g1); }
How will you print % character? a. printf(“\%”) b. printf(“\\%”) c. printf(“%%”) d. printf(“\%%”)
pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"
Write a single line c expression to delete a,b,c from aabbcc
main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p } a. Runtime error. b. 1.00000 c. Compile error d. 0.00000
main() { extern out; printf("%d", out); } int out=100;
void main() { int i=i++,j=j++,k=k++; printf(“%d%d%d”,i,j,k); }
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }
#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
main( ) { int a[ ] = {10,20,30,40,50},j,*p; for(j=0; j<5; j++) { printf(“%d” ,*a); a++; } p = a; for(j=0; j<5; j++) { printf(“%d ” ,*p); p++; } }