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 |
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); }
main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above
main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcpy(a,b)); } a. “Hello” b. “Hello World” c. “HelloWorld” d. None of the above
4 Answers Corporate Society, HCL,
How we print the table of 2 using for loop in c programing?
In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }
main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;
hello sir,is there any function in C that can calculate number of digits in an int type variable,suppose:int a=123; 3 digits in a.what ll b answer?
main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }
abcdedcba abc cba ab ba a a
How to use power function under linux environment.eg : for(i=1;i<=n;i++){ pow(-1,i-1)} since it alerts undefined reference to 'pow'.
main() { int i = 3; for (;i++=0;) printf(“%d”,i); }
how can i search an element in an array
2 Answers CTS, Microsoft, ViPrak,