The document contains 30 code snippets with questions about the output of each snippet. The snippets cover a range of C programming concepts like data types, operators, functions, arrays, pointers, typedefs and macros.
Program to check prime number, Print next prime number
write a program to print next prime number suppose you enter 6 then print next prime number that is 7
Program to check prime number, Print next prime number
write a program to print next prime number suppose you enter 6 then print next prime number that is 7
In computer science, a pointer is a programming language object, whose value refers to (or "points to") another value stored elsewhere in the computer memory using its memory address. A pointer references a location in memory, and obtaining the value stored at that location is known as dereferencing the pointer. As an analogy, a page number in a book's index could be considered a pointer to the corresponding page; dereferencing such a pointer would be done by flipping to the page with the given page number.
Ex.1 Write a program to print the following pattern
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Ex.2 Write a program to find bigger of three integers.
Ex.3 Write a program to calculate GCD between two numbers.
Ex.4 Write a program to find transpose of matrix.
Ex.5 Write a program which deletes an element from an array & display all other elements.
Ex.6 Write a program to calculate XA+YB where A & B are matrix & X=2, Y=3.
Ex.7 Write a program to calculate the total amount of money in the piggy bank, given that coins of Rs.10, Rs.5, Rs.2, RS.1.
& many more.....
In computer science, a pointer is a programming language object, whose value refers to (or "points to") another value stored elsewhere in the computer memory using its memory address. A pointer references a location in memory, and obtaining the value stored at that location is known as dereferencing the pointer. As an analogy, a page number in a book's index could be considered a pointer to the corresponding page; dereferencing such a pointer would be done by flipping to the page with the given page number.
Ex.1 Write a program to print the following pattern
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Ex.2 Write a program to find bigger of three integers.
Ex.3 Write a program to calculate GCD between two numbers.
Ex.4 Write a program to find transpose of matrix.
Ex.5 Write a program which deletes an element from an array & display all other elements.
Ex.6 Write a program to calculate XA+YB where A & B are matrix & X=2, Y=3.
Ex.7 Write a program to calculate the total amount of money in the piggy bank, given that coins of Rs.10, Rs.5, Rs.2, RS.1.
& many more.....
hey this is Rupendra choudhary..!! i shared my "c" lang ppt..!!! u just goto that ppt if u r in deep with "c" ..!!! i create after i hv played a much with "c"..(sorry bt ppt is slightly disturbd may be due to unsupportable msppt2010 by slideshare)...find me on rupendrachoudhary1990@gmail.com or https://rupendrachoudhary.wordpress.com
These problems are so common that you will find in any C learning curriculum. Either in your college or in any IT institute.
I have provided solutions to these problems as well.
Happy learning...
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
2. 1. What will be output when you will execute
following c code?
#include<stdio.h>
int main(){
printf("%dt",sizeof(6.5));
printf("%dt",sizeof(90000));
printf("%d",sizeof('A'));
return 0;
}
3. 2.What will be output when you will execute following
c code?
#include<stdio.h>
int main(){
signed x;
unsigned y;
x = 10 +- 10u + 10u +- 10;
y = x;
if(x==y)
printf("%d %d",x,y);
else if(x!=y)
printf("%u %u",x,y);
return 0;
}
4. 3.What will be output when you will execute
following c code?
#include<stdio.h>
int main(){
double num=5.2;
int var=5;
printf("%dt",sizeof(!num));
printf("%dt",sizeof(var=15/2));
printf("%d",var);
return 0;
}
5. 4.What will be output when
you will execute following c code?
#include<stdio.h>
enum A{
x,y=5,
enum B{
p=10,q
}varp;
}varx;
int main(){
printf("%d%d",x,varp.q);
return 0;
}
6.
7. 6.What will be the output of the following.
#include<stdio.h>
#include<conio.h>
void main()
{
int a=1,b=1,c=0,i;
clrscr();
printf("%dt%dt",a,b);
for(i=0;i<=10;i++)
{
c=a+b;
if(c<100)
{
printf("%dt",c);
}
a=b;
b=c;
}
getch();
}
8. 7.What will be the output of the following code.
#include<stdio.h>
#include<conio.h>
void main()
{
int uabs(int), x;
clrscr();
printf(“enter a negative value:”);
scanf(“%d”, x);
x=uabs(x);
printf(“X=%d”, x);
return 0;
}
uabs(int y)
{
if(y<0)
return(y*-1);
else
return(y);
}
9. 8.What will be the content of 'file.c' after executing the
following program?
#include<stdio.h>
int main()
{
FILE *fp1, *fp2;
fp1=fopen("file.c", "w");
fp2=fopen("file.c", "w");
fputc('A', fp1);
fputc('B', fp2);
fclose(fp1);
fclose(fp2);
return 0; }
10. 9.What is the output of the
following program?
void main()
{
static int i=i++, j=j++, k=k++;
printf(“i = %d j = %d k = %d”, i, j, k);
}
11. 10.What is the output of the
following program?
main()
{
unsigned int i=10;
while(i-->=0)
printf(“%u ”,i);
}
12. 11.What is the output of the
following program?
#include<conio.h>
main()
{
int x,y=2,z,a;
if(x=y%2) z=2;
a=2;
printf(“%d %d”,z,x);
}
13. 12.What is the output of the
following program?
main()
{
int a[10];
printf(“%d”,*a+1-*a+3);
}
14. 13. What is the output of the
following program?
#define prod(a,b) a*b
main()
{
int x=3,y=4;
printf(“%d”,prod(x+2,y-1));
}
15. 14.What is the output of the
following program?
main()
{
unsigned int i=65000;
while(i++!=0);
printf("%d",i);
}
16. 15. What is the output of the
following program?
main()
{
float f=5,g=10;
enum{i=10,j=20,k=50};
printf(“%dn”,++k);
printf(“%fn”,f<<2);
printf(“%lfn”,f%g);
printf(“%lfn”,fmod(f,g));
}
17. 16. What is the output of the
following program?
main()
{
signed char i=0;
for(;i>=0;i++) ;
printf(“%dn”,i);
}
18. 17. What is the output of the
following program?
main()
{
unsigned char i=0;
for(;i>=0;i++) ;
printf(“%dn”,i);
}
19. 18.What is the output of the
following program?
main()
{
char *p = “ayqm”;
printf(“%c”,++*(p++));
}
20.
21. 20.What is the output of the
following program?
main()
{
char str1[] = {‘s’,‘o’,‘m’,‘e’};
char str2[] = {‘s’,‘o’,‘m’,‘e’,‘0’};
while (strcmp(str1,str2))
printf(“Strings are not equaln”);
}
22. 21. What is the output of the
following program?
void main()
{
static int i;
while(i<=10)
(i>2)?i++:i--;
printf(“%d”, i);
}
23. 22.What is the output of the
following program?
main()
{
register int a=2;
printf(“Address of a = %d”,&a);
printf(“Value of a = %d”,a);
}
24. 23. What is the output of the
following program?
main()
{
float i=1.5;
switch(i)
{
case 1: printf(“1”);
case 2: printf(“2”);
default : printf(“0”);
}
}
25. 24.What is the output of the
following program?
main()
{
extern i;
printf(“%dn”,i);
{
int i=20;
printf(“%dn”,i);
}
}
26. 25.What is the output of the
following program?
main()
{
int i = 257;
int *iPtr = &i;
printf(“%d %d”, *((char*)iPtr), *((char*)iPtr+1));
}
27. 26. What is the output of the
following program?
main()
{
char a[4]=“HELLO”;
printf(“%s”,a);
}
28. 27.What is the output of the
following program?
void main()
{
int const * p=5;
printf("%d",++(*p));
}
29. 28.What is the output of the
following program?
main()
{
char s[ ]=“man”;
int i;
for(i=0;s[ i ];i++)
printf(“n%c%c%c%c”,s[ i ],*(s+i),*(i+s),i[s]);
}
30. 29.What is the output of the
following program?
main()
{
char *p;
printf(“%d %d ”,sizeof(*p),sizeof(p));
}
31. 30. What is the output of the
following program?
#define int char
main()
{
int i=65;
printf(“sizeof(i)=%d”,sizeof(i));
}