Is it possible to pass an entire structure to functions?
No Answer is Posted For this Question
Be the First to Post Answer
What will be the result of the following program? main() { char p[]="String"; int x=0; if(p=="String") { printf("Pass 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } else { printf("Fail 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } } a) Pass 1, Pass 2 b) Fail 1, Fail 2 c) Pass 1, Fail 2 d) Fail 1, Pass 2 e) syntax error during compilation
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300
a value that does not change during program execution a) variabe b) argument c) parameter d) none
How can you call a function, given its name as a string?
pgm to reverse string using arrays i.e god is love becomes love is god) (assumption:only space is used for seperation of words) no addtional memory used.i.e no temporary arrays can used.
What is the size of structure in c?
what is the difference between entry control and exit control statement?
12 Answers Darbari Lal DAV Model School,
Explain what is the difference between the expression '++a' and 'a++'?
how can i make a program with this kind of output.. Enter a number: 5 0 01 012 0123 01234 012345 01234 0123 012 01 0
What is the Lvalue and Rvalue?
Why flag is used in c?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question