-
Accept two numbers from the user...
...and multiply these two numbers without using the multiplication operator!
using any loop! -
Function syntax
string abc = showData()["Hello"];
can somebody explain what is use of ["Hello"] after function call? -
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 difference between #include <file> and #include “file”?
When writing your C program, you can include files in two ways. The first way is to surround the file you want to include with the angled brackets < and >. This method of inclusion tells the preprocessor to look for the file in the predefined default location. This predefined default location is often an INCLUDE environment variable that denotes the path to your include files. For instance,...
-
What is the stack?
The stack is where all the functions’ local (auto) variables are created. The stack also contains some information used to call and return from functions. A “stack trace” is a list of which functions have been called, based on this information. When you start using a debugger, one of the first things you should learn is how to get a stack trace. The stack is very inflexible about allocating memory;...
-
Is it better to use a pointer to navigate an array of values,or is it better to use a subscripted array name?
It’s easier for a C compiler to generate good code for pointers than for subscripts.
-
What is an argument ? differentiate between formal arguments and actual arguments?
An argument is an entity used to pass the data from calling funtion to the called funtion. Formal arguments are the arguments available in the funtion definition.They are preceded by their own data types.Actual arguments are available in the function call.
-
-
-
-
-
-
-
-
C Interview Questions
Ans