How to add two numbers without using semicolon n c????
Answers were Sorted based on User's Feedback
Answer / sorab aggarwal
#include<conio.h>
#include<stdio.h>
void main()
{
if(printf("%d",5+6))
{}
getch();
}
Is This Answer Correct ? | 27 Yes | 8 No |
Answer / ashish lamse
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
void main()
{
if(cout<<"add of two no="<<10+20)
{}
if(getch())
{}
}
Is This Answer Correct ? | 4 Yes | 1 No |
What is c language and why we use it?
What are header files and what are its uses in C programming?
What is the use of parallelize in spark?
What is the difference between new and malloc functions?
What does it mean when a pointer is used in an if statement?
What is hungarian notation? Is it worthwhile?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Compare and contrast compilers from interpreters.
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]
How are variables declared in c?
a memory of 20 bytes is allocated to a string declared as char *s then the following two statements are executed: s="Etrance" l=strlen(s); what is the value of l ? a.20 b.8 c.9 d.21