void main()
{
int c;
c=printf("Hello world");
printf("\n%d",c);
}
Answers were Sorted based on User's Feedback
Answer / vijeselvam
Hello world
11 /*if their is single space between the words that are
printed*/
12 /*if their is double space between the words that are
printed*/
Is This Answer Correct ? | 2 Yes | 0 No |
main() { void swap(); int x=10,y=8; swap(&x,&y); printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; }
Give a one-line C expression to test whether a number is a power of 2.
main() { clrscr(); } clrscr();
write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?
WAP to display 1,2,3,4,5........N
char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }
#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }
How to read a directory in a C program?
main() { main(); }
main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }
#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }
Who could write how to find a prime number in dynamic array?