main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.
1 9022write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
ADP,
21241. What will be the output of the following programs.
a) #include
CSC,
7 10005what are threads ? why they are called light weight processes ? what is the relation between process and threads ?
1 3401what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?
1 6018write a program that accepts 3 numbers from the user. dispaly the values in a descending order.
3 6778Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
3394can we declare a variable in different scopes with different data types? answer in detail
TCS,
3 5551An array name contains base address of the array. Can we change the base address of the array?
4 13951
How can I find out the size of a file, prior to reading it in?
What is a structure member in c?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
How do you declare a variable that will hold string values?
Explain can static variables be declared in a header file?
Who is the main contributor in designing the c language after dennis ritchie?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
For what purpose null pointer used?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
int i=10; printf("%d %d %d", i, i=20, i);
Explain how do you use a pointer to a function?
Explain do array subscripts always start with zero?
Why pointers are used in c?