#include<stdio.h>
void main()
{
int =1;
printf("%d%d%d",a++,++a,++a);
}
Answers were Sorted based on User's Feedback
Explain what is wrong with this statement? Myname = ?robin?;
Why can't we initialise member variable of a strucutre
When should volatile modifier be used?
what is the answer for it main() { int i; clrscr(); printf("%d",&i)+1; scanf("%d",i)-1; }
where do we use structure pointer?
44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?
Explain what is the difference between a free-standing and a hosted environment?
what is pointer?
13 Answers HCL, TCS,
Write a program to swap two numbers without using third variable?
Which is more efficient, a switch statement or an if else chain?
write a c program that if the given number is prime, and their rearrangement(permute) of that number is also prime. Ex: Input is "197" is prime Output: 791,917,179 is also prime. Please any one tell me tha code for that
What are the primitive data types in c?