#define MAX 3
main()
{
printf("MAX = %d
",MAX );
#undef MAX
#ifdef MAX
printf("Vector Institute”);
#endif
}
in malloc and calloc which one is fast and why?
What is the equivalent code of the following statement in WHILE LOOP format?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
2 Answers HCL, IBM, Satyam, Vimal, Vimukti Technologies,
Why c is procedure oriented?
what is the return type of printf
Is there sort function in c?
What will be the output of x++ + ++x?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
#include<stdio.h> #include<conio.h> # define swap(a,b) temp=a; a=b; b=temp; void main( ) { int i, j, temp; i=5; j=10; temp=0; if( i > j) swap( i, j ); printf( "%d %d %d", i, j, temp); }
Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;
How can I read data from data files with particular formats?
What do you mean by recursion in c?