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 / anshu ranjan
#include<stdio.h>
void main()
{
if(printf("%c",59)){}
}
\\actually, this is correct
Is This Answer Correct ? | 104 Yes | 3 No |
Answer / vinay_csjm
void main()
{
if(printf("semicolon")){}
if(printf(getch())){}
}
Is This Answer Correct ? | 72 Yes | 35 No |
Answer / ankit popli
Answer#2 has a mistake thats why its not working in TURBO C/C++.....i.e
void main()
{
while(!printf("\nHello World"))
{}
}
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / arun chauhan
#include<stdio.h>
void main()
{
if(printf("semicolon"))
{}
}
when you compile and run the program it will not stop at the console. You can see the result with the help of Alt+F5
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / rakesh
#include<stdio.h>
void main()
{
if(printf("semicolon")){}
if(getch()){}
}
this will print the word 'semicolon'
Is This Answer Correct ? | 3 Yes | 2 No |
# include <stdio.h> int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); }
main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(ā%u %u %u %d \nā,a,*a,**a,***a); printf(ā%u %u %u %d \nā,a+1,*a+1,**a+1,***a+1); }
write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?
int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }
main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf(" %d",i); } void pascal f(integer :i,integer:j,integer :k) { write(i,j,k); }
Find the largest number in a binary tree
Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped
Design an implement of the inputs functions for event mode
what is the code of the output of print the 10 fibonacci number series
PROG. TO PRODUCE 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }
Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])