In c programming language, how many parameters can be passed to a function ?
In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }
What is s or c?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What are compound statements?
what is unsigened char and what is the difference from char
What will be printed as the result of the operation below: #include<..> int x; int modifyvalue() { return(x+=10); } int changevalue(int x) { return(x+=1); } void main() { int x=10; x++; changevalue(x); x++; modifyvalue(); printf("First output:%d\n",x); x++; changevalue(x); printf("Second output:%d\n",x); modifyvalue(); printf("Third output:%d\n",x); }
Give the logic for this #include<stdio.h> #include<conio.h> void main() { clrscr(); int a=10,b; b=++a + ++a; printf("%d", b); getch(); } Output: 24......How?
What is Generic pointer? What is the purpose of Generic pointer? Where it is used?
While(1) { } when this loop get terminate is it a infinite loop?
Difference between C and Embedded C?
What is gets() function?
If input is 123 then how to print 100 and 20 and 3 seperately?