print a semicolon using Cprogram without using a semicolon
any where in the C code in ur program!!
Answers were Sorted based on User's Feedback
Answer / bikash mazumdar
void main()
{
while(!printf("\nHello World"))
}
| Is This Answer Correct ? | 30 Yes | 36 No |
Answer / narasimha peruru
#include<stdio.h>
void main()
{
while( printf("%c", 59), 0)
{
}
}
| Is This Answer Correct ? | 1 Yes | 7 No |
Answer / anshu ranjan
#include<stdio.h>
void main()
{int a=59;
if(printf("%c",a)){}
}
\\the previous one was wrong
| Is This Answer Correct ? | 17 Yes | 32 No |
Answer / anshu ranjan
#include<stdio.h>
void main()
{char a=';';
if(printf("%c",a)){}
}
| Is This Answer Correct ? | 15 Yes | 49 No |
Give a one-line C expression to test whether a number is a power of 2.
union u { union u { int i; int j; }a[10]; int b[10]; }u; main() { printf("\n%d", sizeof(u)); printf(" %d", sizeof(u.a)); // printf("%d", sizeof(u.a[4].i)); } a. 4, 4, 4 b. 40, 4, 4 c. 1, 100, 1 d. 40 400 4
Derive expression for converting RGB color parameters to HSV values
How can you relate the function with the structure? Explain with an appropriate example.
write a c-program to display the time using FOR loop
What is the problem with the following code segment? while ((fgets(receiving array,50,file_ptr)) != EOF) ;
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']
main() { int i = 3; for (;i++=0;) printf(ā%dā,i); }
struct Foo { char *pName; char *pAddress; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); obj->pName = malloc(100); obj->pAddress = malloc(100); strcpy(obj->pName,"Your Name"); strcpy(obj->pAddress, "Your Address"); free(obj); printf("%s", obj->pName); printf("%s", obj->pAddress); } a. Your Name, Your Address b. Your Address, Your Address c. Your Name Your Name d. None of the above
what will be the position of the file marker? a: fseek(ptr,0,SEEK_SET); b: fseek(ptr,0,SEEK_CUR);
Link list in reverse order.
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
9 Answers CSC, GoDB Tech, IBM,