-
Language and scripting language
Explain the difference between language and scripting language?
-
What is the output of the program
c#include
int main()
{
printf("%c",*"abcde");
return 0;
} -
-
C program - find mistake
In following program, because of a typo mistake, the test() function returns zero. Actual expected value is different than zero. Assuming the typo mistake is fixed find the expected output and enter the number as answer.
var nums = [100,1000,10,1010];
cfunction test() {
var a = nums[0];
var b = nums[0];
for (i = 0; i < a.length; i++) {
... -
Print printf without using printf
How to print printf without using printf in C program?
-
Return Multiple Values at a time from Function
How can we return multiple values at a time from function using call by reference?
-
What is the benefit of using #define to declare a constant?
Using the #define method of declaring a constant enables you to declare a constant in one place and use it throughout your program. This helps make your programs more maintainable, because you need to maintain only the #define statement and not several instances of individual constants throughout your program. For instance, if your program used the value of pi (approximately 3.14159) several...
-
How can I convert a number to a string?
The standard C library provides several functions for converting numbers of all formats (integers, longs, floats, and so on) to strings and vice versa The following functions can be used to convert integers to strings: Function Name Purpose itoa() Converts an integer value to a string. ltoa() Converts a long integer value to a string. ultoa() Converts an unsigned long integer value to a string....
-
Which expression always return true? Which always return false?
expression if (a=0) always return false expression if (a=1) always return true
-
-
-
-
-
-
-
Main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; }
A) Gets into Infinite loopB) Compile error. Illegal syntaxC) None of the aboveD) Runtime error.Explanation: illegal syntax for using return
-
Main(){ char * strA; char * strB = I am OK; memcpy( strA, strB, 6);}
A) Compile errorB) I am OKC) Runtime error.D) I am OExplanation: I am OK is not within " "
-
-
-
Following declarations are sameconst char *s; char const *s;
A) TrueB) False
C Interview Questions
Ans