What will the code below print when it is executed?
int x = 3, y = 4;
if (x = 4)
y = 5;
else
y = 2;
printf ("x=%d, y=%d
",x,y);
No Answer is Posted For this Question
Be the First to Post Answer
What is main () in c language?
How do you determine a file’s attributes?
swap two integer variables without using a third temporary variable?
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
Did c have any year 2000 problems?
What happens if header file is included twice?
I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....
give an example of type casting by a simple c program
why we use pointer in c
In which layer of the network datastructure format change is done
What are the advantages and disadvantages of pointers?
how we can say java is platform independent, while we require JVM for that particular Operating System?