What's the best way to declare and define global variables?
Answer Posted / s.madhavi
By using #define directive............
| Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
What is c language used for?
What is the use of c language in real life?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
C program to find all possible outcomes of a dice?
What are the types of bitwise operator?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
How are Structure passing and returning implemented by the complier?
Is malloc memset faster than calloc?
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);
Why does notstrcat(string, "!");Work?
What is realloc in c?
What are runtime error?
Explain how can you tell whether a program was compiled using c versus c++?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Why c language?