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 |
int a = 10 + 10 .... ,... A = A * A What would be the value of A? The answer is 120!! Could anyone explain this to me.
2 Answers Bosch, eInfochips, HCL, IHCL,
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }
4 Answers Google, HCL, Quick Heal, WTF,
write a c program to Create a registration form application by taking the details like username, address, phone number, email along with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 5 users and display the details. In place of password display “****”. (Use Structures).
0 Answers CDAC, College School Exams Tests,
main() { char str1[] = {‘s’,’o’,’m’,’e’}; char str2[] = {‘s’,’o’,’m’,’e’,’\0’}; while (strcmp(str1,str2)) printf(“Strings are not equal\n”); }
To reverse an entire text file into another text file.... get d file names in cmd line
main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 b. 2, 100 c. 4, 100 d. 4, 4
18 Answers HCL, IBM, Infosys, LG Soft, Satyam,
#define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }
#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s=malloc(sizeof(struct xx)); printf("%d",s->x); printf("%s",s->name); }
void main() { int c; c=printf("Hello world"); printf("\n%d",c); }
How to access command-line arguments?
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }